java.lang.Object
ch.qos.logback.access.common.spi.AccessEvent
- All Implemented Interfaces:
 IAccessEvent,ch.qos.logback.core.spi.DeferredProcessingAware,Serializable
This class is the implementation of the IAccessEvent interface.
Much of the processing done by the logack-access project revolves around this class.
- Author:
 - Ceki Gülcü, Sébastien Pennec
 - See Also:
 
- 
Field Summary
Fields inherited from interface ch.qos.logback.access.common.spi.IAccessEvent
NA, SENTINEL - 
Constructor Summary
ConstructorsConstructorDescriptionAccessEvent(ch.qos.logback.core.Context context, jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, ServerAdapter adapter)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetAttribute(String key) longList<jakarta.servlet.http.Cookie> Return the list of cookies in the httpRequest.longThe number of seconds elapsed between receiving the request and logging it.longThe time elapsed between receiving the request and logging it in milliseconds.intjakarta.servlet.http.HttpServletRequestReturns the underlying HttpServletRequest.getRequestHeader(String key) String[]The first line of the request.jakarta.servlet.http.HttpServletResponseReturns the underlying HttpServletResponse.getResponseHeader(String key) longThe sequence number associated with this event.intlongThe number of milliseconds elapsed from 1/1/1970 until logging event was created.voidvoidsetSequenceNumber(long sequenceNumber) voidsetThreadName(String threadName) voidsetTimeStamp(long timeStamp)  
- 
Constructor Details
- 
AccessEvent
public AccessEvent(ch.qos.logback.core.Context context, jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, ServerAdapter adapter)  
 - 
 - 
Method Details
- 
getRequest
Returns the underlying HttpServletRequest. After serialization the returned value will be null.- Specified by:
 getRequestin interfaceIAccessEvent- Returns:
 
 - 
getResponse
Returns the underlying HttpServletResponse. After serialization the returned value will be null.- Specified by:
 getResponsein interfaceIAccessEvent- Returns:
 
 - 
getTimeStamp
Description copied from interface:IAccessEventThe number of milliseconds elapsed from 1/1/1970 until logging event was created.- Specified by:
 getTimeStampin interfaceIAccessEvent
 - 
setTimeStamp
 - 
getSequenceNumber
Description copied from interface:IAccessEventThe sequence number associated with this event.Sequence numbers, if present, should be increasing monotonically.
- Specified by:
 getSequenceNumberin interfaceIAccessEvent
 - 
setSequenceNumber
 - 
setThreadName
- Specified by:
 setThreadNamein interfaceIAccessEvent- Parameters:
 threadName- The threadName to set.
 - 
getThreadName
- Specified by:
 getThreadNamein interfaceIAccessEvent
 - 
getRequestURI
- Specified by:
 getRequestURIin interfaceIAccessEvent
 - 
getQueryString
- Specified by:
 getQueryStringin interfaceIAccessEvent
 - 
getRequestURL
The first line of the request.- Specified by:
 getRequestURLin interfaceIAccessEvent
 - 
getRemoteHost
- Specified by:
 getRemoteHostin interfaceIAccessEvent
 - 
getRemoteUser
- Specified by:
 getRemoteUserin interfaceIAccessEvent
 - 
getProtocol
- Specified by:
 getProtocolin interfaceIAccessEvent
 - 
getMethod
- Specified by:
 getMethodin interfaceIAccessEvent
 - 
getSessionID
- Specified by:
 getSessionIDin interfaceIAccessEvent
 - 
getServerName
- Specified by:
 getServerNamein interfaceIAccessEvent
 - 
getRemoteAddr
- Specified by:
 getRemoteAddrin interfaceIAccessEvent
 - 
getRequestHeader
- Specified by:
 getRequestHeaderin interfaceIAccessEvent
 - 
getRequestHeaderNames
- Specified by:
 getRequestHeaderNamesin interfaceIAccessEvent
 - 
getRequestHeaderMap
- Specified by:
 getRequestHeaderMapin interfaceIAccessEvent
 - 
buildRequestHeaderMap
 - 
buildRequestParameterMap
 - 
getRequestParameterMap
- Specified by:
 getRequestParameterMapin interfaceIAccessEvent
 - 
getAttribute
- Specified by:
 getAttributein interfaceIAccessEvent
 - 
getRequestParameter
- Specified by:
 getRequestParameterin interfaceIAccessEvent
 - 
getCookies
Return the list of cookies in the httpRequest. The list is created if it did not exist previously.- Specified by:
 getCookiesin interfaceIAccessEvent- Returns:
 - a list of cookies in the httpRequest, the returned list can be empty but not null
 - Since:
 - version 2.0.2
 
 - 
getCookie
- Specified by:
 getCookiein interfaceIAccessEvent
 - 
getContentLength
- Specified by:
 getContentLengthin interfaceIAccessEvent
 - 
getStatusCode
- Specified by:
 getStatusCodein interfaceIAccessEvent
 - 
getElapsedSeconds
Description copied from interface:IAccessEventThe number of seconds elapsed between receiving the request and logging it.- Specified by:
 getElapsedSecondsin interfaceIAccessEvent
 - 
getElapsedTime
Description copied from interface:IAccessEventThe time elapsed between receiving the request and logging it in milliseconds.- Specified by:
 getElapsedTimein interfaceIAccessEvent
 - 
getRequestContent
- Specified by:
 getRequestContentin interfaceIAccessEvent
 - 
getResponseContent
- Specified by:
 getResponseContentin interfaceIAccessEvent
 - 
getLocalPort
- Specified by:
 getLocalPortin interfaceIAccessEvent
 - 
getServerAdapter
- Specified by:
 getServerAdapterin interfaceIAccessEvent
 - 
getResponseHeader
- Specified by:
 getResponseHeaderin interfaceIAccessEvent
 - 
getResponseHeaderMap
- Specified by:
 getResponseHeaderMapin interfaceIAccessEvent
 - 
getResponseHeaderNameList
- Specified by:
 getResponseHeaderNameListin interfaceIAccessEvent
 - 
prepareForDeferredProcessing
- Specified by:
 prepareForDeferredProcessingin interfacech.qos.logback.core.spi.DeferredProcessingAware
 
 -