public class DefaultHandler extends AbstractHandler
_string
Constructor and Description |
---|
DefaultHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
getServeIcon() |
void |
handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
Handle a request.
|
void |
setServeIcon(boolean serveIcon) |
destroy, doStart, doStop, getServer, setServer, toString
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
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
public boolean getServeIcon()
public void setServeIcon(boolean serveIcon)
serveIcon
- true if the handle can server the jetty favicon.icoCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.