Top Description Fields Constructors Methods
org.mortbay.jetty.handler

public Class RequestLogHandler

extends HandlerWrapper
Class Inheritance
Imports
java.io.IOException, javax.servlet.ServletException, javax.servlet.http.HttpServletRequest, .HttpServletResponse, org.mortbay.jetty.Request, .RequestLog, .Response, .Server, org.mortbay.log.Log

RequestLogHandler. This handler can be used to wrap an individual context for context logging.
Author
Nigel Canonizado

Field Summary

Modifier and TypeField and Description
private RequestLog

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
public RequestLog
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.HandlerWrapper.handle.

Implements org.mortbay.jetty.Handler.handle.

Handle a request.
public void
public void
Inherited from org.mortbay.jetty.handler.HandlerWrapper:
addHandlerexpandChildrengetHandlerremoveHandlersetHandler

Field Detail

_requestLogback to summary
private RequestLog _requestLog

Constructor Detail

RequestLogHandlerback to summary
public RequestLogHandler()

Method Detail

doStartback to summary
protected void doStart() throws Exception

Overrides org.mortbay.jetty.handler.HandlerWrapper.doStart.

doStopback to summary
protected void doStop() throws Exception

Overrides org.mortbay.jetty.handler.HandlerWrapper.doStop.

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

Overrides org.mortbay.jetty.handler.HandlerWrapper.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

setRequestLogback to summary
public void setRequestLog(RequestLog requestLog)
setServerback to summary
public void setServer(Server server)

Overrides org.mortbay.jetty.handler.HandlerWrapper.setServer.

Implements org.mortbay.jetty.Handler.setServer.