|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.http.handler.AbstractHttpHandler | +--org.mortbay.jetty.servlet.ServletHandler | +--org.mortbay.jetty.servlet.WebApplicationHandler
WebApp HttpHandler. This handler extends the ServletHandler with security, filter and resource capabilities to provide full J2EE web container support.
WebApplicationContext
,
Serialized FormField Summary |
Fields inherited from class org.mortbay.jetty.servlet.ServletHandler |
__DEFAULT_SERVLET |
Constructor Summary | |
WebApplicationHandler()
|
Method Summary | |
FilterHolder |
defineFilter(java.lang.String name,
java.lang.String className)
|
FilterHolder |
getFilter(java.lang.String name)
|
java.util.List |
getFilters()
|
void |
initializeServlets()
Initialize load-on-startup servlets. |
boolean |
isAcceptRanges()
|
boolean |
isStarted()
|
FilterHolder |
mapPathToFilter(java.lang.String pathSpec,
java.lang.String filterName)
|
FilterHolder |
mapServletToFilter(java.lang.String servletName,
java.lang.String filterName)
|
void |
setAcceptRanges(boolean ar)
Set if the handler accepts range requests. |
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler |
getHttpContext, getName, handleTrace, setName, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WebApplicationHandler()
Method Detail |
public boolean isAcceptRanges()
public void setAcceptRanges(boolean ar)
ar
- True if the handler should accept rangespublic FilterHolder defineFilter(java.lang.String name, java.lang.String className)
public FilterHolder getFilter(java.lang.String name)
public FilterHolder mapServletToFilter(java.lang.String servletName, java.lang.String filterName)
public java.util.List getFilters()
public FilterHolder mapPathToFilter(java.lang.String pathSpec, java.lang.String filterName)
public boolean isStarted()
isStarted
in interface LifeCycle
isStarted
in class AbstractHttpHandler
public void start() throws java.lang.Exception
LifeCycle
start
in interface LifeCycle
start
in class ServletHandler
java.lang.Exception
- An arbitrary exception may be thrown.public void initializeServlets() throws java.lang.Exception
ServletHandler
initializeServlets
in class ServletHandler
java.lang.Exception
public void stop() throws java.lang.InterruptedException
LifeCycle
stop
in interface LifeCycle
stop
in class ServletHandler
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |