Top Description Constructors Methods
org.mortbay.jetty.handler

public Class HandlerList

extends HandlerCollection
Class Inheritance
Imports
java.io.IOException, javax.servlet.ServletException, javax.servlet.http.HttpServletRequest, .HttpServletResponse, org.mortbay.jetty.Handler, .HttpConnection, .Request

HandlerList. This extension of org.mortbay.jetty.handler.HandlerCollection will call each contained handler in turn until either an exception is thrown, the response is committed or a positive response status is set.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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
)

Overrides org.mortbay.jetty.handler.HandlerCollection.handle.

Implements org.mortbay.jetty.Handler.handle.

Handle a request.
Inherited from org.mortbay.jetty.handler.HandlerCollection:
addHandlerdoStartdoStopexpandChildrengetHandlersremoveHandlersetHandlerssetServer

Constructor Detail

HandlerListback to summary
public HandlerList()

Method Detail

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

Overrides org.mortbay.jetty.handler.HandlerCollection.handle.

Implements org.mortbay.jetty.Handler.handle.

Doc from org.mortbay.jetty.Handler.handle.

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