Top Fields Methods
org.mortbay.jetty

public Interface Handler

extends LifeCycle
Known Direct Subinterfaces
org.mortbay.jetty.handler.SecurityHandler
Known Direct Implementers
org.mortbay.jetty.handler.AbstractHandler
Imports
java.io.IOException, javax.servlet.ServletException, javax.servlet.http.HttpServletRequest, .HttpServletResponse, org.mortbay.component.LifeCycle

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
DEFAULT

Dispatch types

public static final int
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public void
public Server
public void
handle(String
The target of the request - either a URI or a name.
target
,
HttpServletRequest
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.
request
,
HttpServletResponse
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.
response
,
int
The dispatch mode: REQUEST, FORWARD, INCLUDE, ERROR
dispatch
)

Handle a request.

public void
setServer(Server server)

Inherited from org.mortbay.component.LifeCycle:
addLifeCycleListenerisFailedisRunningisStartedisStartingisStoppedisStoppingremoveLifeCycleListenerstartstop

Field Detail

ALLback to summary
public static final int ALL
DEFAULTback to summary
public static final int DEFAULT

Dispatch types

ERRORback to summary
public static final int ERROR
FORWARDback to summary
public static final int FORWARD
INCLUDEback to summary
public static final int INCLUDE
REQUESTback to summary
public static final int REQUEST

Method Detail

destroyback to summary
public void destroy()
getServerback to summary
public Server getServer()
handleback to summary
public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException

Handle a request.

Parameters
target:String

The target of the request - either a URI or a name.

request:HttpServletRequest

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:HttpServletResponse

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:int

The dispatch mode: REQUEST, FORWARD, INCLUDE, ERROR

setServerback to summary
public void setServer(Server server)