org.mortbay.jetty.handler
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, getChildHandlersByClass
destroy, getServer, toString
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public 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
Handler
target
- 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.ERROR
IOException
ServletException
protected void doStart() throws Exception
doStart
in class AbstractHandler
Exception
protected void doStop() throws Exception
doStop
in class AbstractHandler
Exception
public void setServer(Server server)
setServer
in interface Handler
setServer
in class AbstractHandler
public void addHandler(Handler handler)
public void removeHandler(Handler handler)
protected Object expandChildren(Object list, Class byClass)
expandChildren
in class AbstractHandlerContainer
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.