public class HandlerCollection extends AbstractHandlerContainer
_string| Constructor and Description |
|---|
HandlerCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(Handler handler) |
protected void |
doStart() |
protected void |
doStop() |
protected Object |
expandChildren(Object list,
Class byClass) |
Handler[] |
getHandlers() |
void |
handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
Handle a request.
|
void |
removeHandler(Handler handler) |
void |
setHandlers(Handler[] handlers) |
void |
setServer(Server server) |
expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClassdestroy, getServer, toStringaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic Handler[] getHandlers()
public void setHandlers(Handler[] handlers)
handlers - The handlers to set.public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException
Handlertarget - The target of the request - either a URI or a name.request - The request either as the Request
object or a wrapper of that request. The HttpConnection.getCurrentConnection()
method can be used access the Request object if required.response - The response as the Response
object or a wrapper of that request. The HttpConnection.getCurrentConnection()
method can be used access the Response object if required.dispatch - The dispatch mode: Handler.REQUEST, Handler.FORWARD, Handler.INCLUDE, Handler.ERRORIOExceptionServletExceptionprotected void doStart()
throws Exception
doStart in class AbstractHandlerExceptionprotected void doStop()
throws Exception
doStop in class AbstractHandlerExceptionpublic void setServer(Server server)
setServer in interface HandlersetServer in class AbstractHandlerpublic void addHandler(Handler handler)
public void removeHandler(Handler handler)
protected Object expandChildren(Object list, Class byClass)
expandChildren in class AbstractHandlerContainerCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.