|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.web.MockServletContext org.apache.jetspeed.mocks.BaseMockServletContext org.apache.jetspeed.mocks.ResourceLocatingServletContext
public class ResourceLocatingServletContext
Nested Class Summary | |
---|---|
static class |
ResourceLocatingServletContext.ServletInfo
|
static class |
ResourceLocatingServletContext.ServletMappingInfo
|
static class |
ResourceLocatingServletContext.ServletMappingRule
|
static class |
ResourceLocatingServletContext.ServletRule
|
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
|
private Map |
pathOverrides
|
private File |
rootPath
|
private List |
servletInfoList
|
private Map |
servletInstanceMap
|
private List |
servletMappingInfoList
|
Constructor Summary | |
---|---|
ResourceLocatingServletContext(File rootPath)
|
|
ResourceLocatingServletContext(File rootPath,
boolean loadServlet)
|
Method Summary | |
---|---|
void |
addPathOverride(String path,
File file)
|
protected javax.servlet.Servlet |
findServletByPath(String path)
|
String |
getRealPath(String path)
|
javax.servlet.RequestDispatcher |
getRequestDispatcher(String arg0)
|
URL |
getResource(String path)
|
InputStream |
getResourceAsStream(String path)
|
Set |
getResourcePaths(String path)
|
protected void |
loadServlets()
|
Methods inherited from class org.apache.jetspeed.mocks.BaseMockServletContext |
---|
getAttribute, removeAttribute, setAttribute, unsupported |
Methods inherited from class com.mockrunner.mock.web.MockServletContext |
---|
addAttributeListener, addResourcePath, addResourcePaths, clearAttributes, clearInitParameters, clearRequestDispatcherMap, getAttributeNames, getContext, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRequestDispatcherMap, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log, resetAll, setContext, setInitParameter, setInitParameters, setMimeType, setRealPath, setRequestDispatcher, setResource, setResourceAsStream, setResourceAsStream, setServletContextName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletContext |
---|
getAttributeNames, getContext, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
private final File rootPath
private final Map pathOverrides
private final List servletInfoList
private final List servletMappingInfoList
private final Map servletInstanceMap
Constructor Detail |
---|
public ResourceLocatingServletContext(File rootPath)
public ResourceLocatingServletContext(File rootPath, boolean loadServlet)
Method Detail |
---|
public final void addPathOverride(String path, File file)
public URL getResource(String path) throws MalformedURLException
getResource
in interface javax.servlet.ServletContext
getResource
in class com.mockrunner.mock.web.MockServletContext
MalformedURLException
public String getRealPath(String path)
getRealPath
in interface javax.servlet.ServletContext
getRealPath
in class com.mockrunner.mock.web.MockServletContext
public InputStream getResourceAsStream(String path)
getResourceAsStream
in interface javax.servlet.ServletContext
getResourceAsStream
in class com.mockrunner.mock.web.MockServletContext
public Set getResourcePaths(String path)
getResourcePaths
in interface javax.servlet.ServletContext
getResourcePaths
in class com.mockrunner.mock.web.MockServletContext
public javax.servlet.RequestDispatcher getRequestDispatcher(String arg0)
getRequestDispatcher
in interface javax.servlet.ServletContext
getRequestDispatcher
in class com.mockrunner.mock.web.MockServletContext
protected javax.servlet.Servlet findServletByPath(String path)
protected void loadServlets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |