|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.http.HttpContext | +--org.mortbay.jetty.servlet.ServletHttpContext
ServletHttpContext. Extends HttpContext with conveniance methods for adding servlets. Enforces a single ServletHandler per context.
Nested Class Summary |
Nested classes inherited from class org.mortbay.http.HttpContext |
HttpContext.ResourceMetaData |
Field Summary |
Fields inherited from class org.mortbay.http.HttpContext |
__fileClassPathAttr |
Constructor Summary | |
ServletHttpContext()
Constructor. |
Method Summary | |
ServletHolder |
addServlet(java.lang.String pathSpec,
java.lang.String className)
Add a servlet to the context. |
ServletHolder |
addServlet(java.lang.String name,
java.lang.String pathSpec,
java.lang.String className)
Add a servlet to the context. |
boolean |
checkSecurityConstraints(java.lang.String pathInContext,
HttpRequest request,
HttpResponse response)
|
ServletContext |
getServletContext()
|
ServletHandler |
getServletHandler()
Get the context ServletHandler. |
void |
setDynamicServletPathSpec(java.lang.String pathSpecInContext)
Deprecated. Use org.mortbay.jetty.servlet.Invoker |
void |
stop()
Stop the context. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServletHttpContext()
Method Detail |
public ServletContext getServletContext()
public ServletHandler getServletHandler()
public ServletHolder addServlet(java.lang.String pathSpec, java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
pathSpec
- The pathspec within the contextclassName
- The classname of the servlet.
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public ServletHolder addServlet(java.lang.String name, java.lang.String pathSpec, java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
name
- The name of the servlet.pathSpec
- The pathspec within the contextclassName
- The classname of the servlet.
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public void setDynamicServletPathSpec(java.lang.String pathSpecInContext)
public boolean checkSecurityConstraints(java.lang.String pathInContext, HttpRequest request, HttpResponse response) throws HttpException, java.io.IOException
checkSecurityConstraints
in class HttpContext
HttpException
java.io.IOException
public void stop() throws java.lang.InterruptedException
HttpContext
stop
in interface LifeCycle
stop
in class HttpContext
java.lang.InterruptedException
- Stopping a lifecycle is rarely atomic
and may be interrupted by another thread. If this happens
InterruptedException is throw and the component will be in an
indeterminant state and should probably be discarded.public java.lang.String toString()
toString
in class HttpContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |