org.mortbay.jetty.handler.HandlerCollection is creates a
org.mortbay.jetty.servlet.PathMap to it's contained handlers based
on the context path and virtual hosts of any contained org.mortbay.jetty.handler.ContextHandlers.
The contexts do not need to be directly contained, only children of the contained handlers.
Multiple contexts may have the same context path and they are called in order until one
handles the request.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ContextHandler | |
| protected void | |
| public Class | |
| public void | handle(String
The target of the request - either a URI or a name. target, HttpServletRequest The request either as the request, HttpServletResponse Request
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Request object if required.The response as the response, int dispatch)Response
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Response object if required.Overrides org. Implements org. |
| public void | |
| private String | |
| public void | |
| public void | setHandlers(Handler[]
The handlers to set. handlers)Overrides org. |
| _contextClass | back to summary |
|---|---|
| private Class<T> _contextClass | |
| _contextMap | back to summary |
|---|---|
| private PathMap _contextMap | |
| ContextHandlerCollection | back to summary |
|---|---|
| public ContextHandlerCollection() | |
| addContext | back to summary |
|---|---|
| public ContextHandler addContext(String contextPath, String resourceBase) Add a context handler.
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. | |
| getContextClass | back to summary |
|---|---|
public Class
| |
| handle | back to summary |
|---|---|
| public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException Overrides org. Implements org. Doc from org. Handle a request.
| |
| mapContexts | back to summary |
|---|---|
| public void mapContexts() Remap the context paths. | |
| normalizeHostname | back to summary |
|---|---|
| private String normalizeHostname(String host) | |
| setContextClass | back to summary |
|---|---|
public void setContextClass(Class<T> contextClass)
| |
| setHandlers | back to summary |
|---|---|
| public void setHandlers(Handler[] handlers) Overrides org.
| |