Logback API
Version 0.9.8

ch.qos.logback.access.spi
Class AccessEvent

java.lang.Object
  extended by ch.qos.logback.access.spi.AccessEvent
All Implemented Interfaces:
Serializable

public class AccessEvent
extends Object
implements Serializable

The Access module's internal representation of logging events. When the logging component instance is called in the container to log then a AccessEvent instance is created. This instance is passed around to the different logback components.

Author:
Ceki Gülcü, Sébastien Pennec
See Also:
Serialized Form

Field Summary
static String EMPTY
           
static String NA
           
static int SENTINEL
           
 
Constructor Summary
AccessEvent(HttpServletRequest httpRequest, HttpServletResponse httpResponse, ServerAdapter adapter)
           
 
Method Summary
 void buildRequestHeaderMap()
           
 void buildRequestParameterMap()
           
 String getAttribute(String key)
          Attributes are not serialized
 long getContentLength()
           
 String getCookie(String key)
           
 int getLocalPort()
           
 String getMethod()
           
 String getProtocol()
           
 String getRemoteAddr()
           
 String getRemoteHost()
           
 String getRemoteUser()
           
 HttpServletRequest getRequest()
           
 String getRequestContent()
           
 String getRequestHeader(String key)
           
 Map<String,String> getRequestHeaderMap()
           
 Enumeration getRequestHeaderNames()
           
 String getRequestParameter(String key)
           
 String getRequestURI()
           
 String getRequestURL()
          The first line of the request.
 HttpServletResponse getResponse()
           
 String getResponseContent()
           
 String getResponseHeader(String key)
           
 List<String> getResponseHeaderNameList()
           
 ServerAdapter getServerAdapter()
           
 String getServerName()
           
 int getStatusCode()
           
 long getTimeStamp()
           
 void prepareForDeferredProcessing()
           
 void setTimeStamp(long timeStamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NA

public static final String NA
See Also:
Constant Field Values

EMPTY

public static final String EMPTY
See Also:
Constant Field Values

SENTINEL

public static final int SENTINEL
See Also:
Constant Field Values
Constructor Detail

AccessEvent

public AccessEvent(HttpServletRequest httpRequest,
                   HttpServletResponse httpResponse,
                   ServerAdapter adapter)
Method Detail

getRequest

public HttpServletRequest getRequest()

getResponse

public HttpServletResponse getResponse()

getTimeStamp

public long getTimeStamp()

setTimeStamp

public void setTimeStamp(long timeStamp)

getRequestURI

public String getRequestURI()

getRequestURL

public String getRequestURL()
The first line of the request.


getRemoteHost

public String getRemoteHost()

getRemoteUser

public String getRemoteUser()

getProtocol

public String getProtocol()

getMethod

public String getMethod()

getServerName

public String getServerName()

getRemoteAddr

public String getRemoteAddr()

getRequestHeader

public String getRequestHeader(String key)

getRequestHeaderNames

public Enumeration getRequestHeaderNames()

getRequestHeaderMap

public Map<String,String> getRequestHeaderMap()

buildRequestHeaderMap

public void buildRequestHeaderMap()

buildRequestParameterMap

public void buildRequestParameterMap()

getResponseHeader

public String getResponseHeader(String key)

getResponseHeaderNameList

public List<String> getResponseHeaderNameList()

getAttribute

public String getAttribute(String key)
Attributes are not serialized

Parameters:
key -
Returns:

getRequestParameter

public String getRequestParameter(String key)

getCookie

public String getCookie(String key)

getContentLength

public long getContentLength()

getStatusCode

public int getStatusCode()

getRequestContent

public String getRequestContent()

getResponseContent

public String getResponseContent()

getLocalPort

public int getLocalPort()

getServerAdapter

public ServerAdapter getServerAdapter()

prepareForDeferredProcessing

public void prepareForDeferredProcessing()

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.