|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
|
| Constructor Summary | |
|---|---|
ResourceLocatingServletContext(java.io.File rootPath)
|
|
ResourceLocatingServletContext(java.io.File rootPath,
boolean loadServlet)
|
|
| Method Summary | |
|---|---|
void |
addPathOverride(java.lang.String path,
java.io.File file)
|
protected javax.servlet.Servlet |
findServletByPath(java.lang.String path)
|
java.lang.String |
getRealPath(java.lang.String path)
|
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String arg0)
|
java.net.URL |
getResource(java.lang.String path)
|
java.io.InputStream |
getResourceAsStream(java.lang.String path)
|
java.util.Set |
getResourcePaths(java.lang.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
| Constructor Detail |
|---|
public ResourceLocatingServletContext(java.io.File rootPath)
public ResourceLocatingServletContext(java.io.File rootPath,
boolean loadServlet)
| Method Detail |
|---|
public final void addPathOverride(java.lang.String path,
java.io.File file)
public java.net.URL getResource(java.lang.String path)
throws java.net.MalformedURLException
getResource in interface javax.servlet.ServletContextgetResource in class com.mockrunner.mock.web.MockServletContextjava.net.MalformedURLExceptionpublic java.lang.String getRealPath(java.lang.String path)
getRealPath in interface javax.servlet.ServletContextgetRealPath in class com.mockrunner.mock.web.MockServletContextpublic java.io.InputStream getResourceAsStream(java.lang.String path)
getResourceAsStream in interface javax.servlet.ServletContextgetResourceAsStream in class com.mockrunner.mock.web.MockServletContextpublic java.util.Set getResourcePaths(java.lang.String path)
getResourcePaths in interface javax.servlet.ServletContextgetResourcePaths in class com.mockrunner.mock.web.MockServletContextpublic javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String arg0)
getRequestDispatcher in interface javax.servlet.ServletContextgetRequestDispatcher in class com.mockrunner.mock.web.MockServletContextprotected javax.servlet.Servlet findServletByPath(java.lang.String path)
protected void loadServlets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||