public interface Handler
extends org.mortbay.component.LifeCycle
Modifier and Type | Field and Description |
---|---|
static int |
ALL |
static int |
DEFAULT
Dispatch types
|
static int |
ERROR |
static int |
FORWARD |
static int |
INCLUDE |
static int |
REQUEST |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Server |
getServer() |
void |
handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
Handle a request.
|
void |
setServer(Server server) |
static final int DEFAULT
static final int REQUEST
static final int FORWARD
static final int INCLUDE
static final int ERROR
static final int ALL
void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException
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: REQUEST
, FORWARD
, INCLUDE
, ERROR
IOException
ServletException
void setServer(Server server)
Server getServer()
void destroy()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.