org.mortbay.jetty.example
Class OneHandler.HelloHandler
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.handler.AbstractHandler
org.mortbay.jetty.example.OneHandler.HelloHandler
- All Implemented Interfaces:
- LifeCycle, Handler
- Enclosing class:
- OneHandler
public static class OneHandler.HelloHandler
- extends AbstractHandler
OneHandler.HelloHandler
public OneHandler.HelloHandler()
handle
public void handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
throws IOException,
ServletException
- Description copied from interface:
Handler
- Handle a request.
- Parameters:
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
- Throws:
IOException
ServletException
Copyright © 2009 Mort Bay Consulting. All Rights Reserved.