Package ch.qos.logback.access.spi
Class AccessEvent
java.lang.Object
ch.qos.logback.access.spi.AccessEvent
- All Implemented Interfaces:
- IAccessEvent,- DeferredProcessingAware,- 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:
- 
Field SummaryFields inherited from interface ch.qos.logback.access.spi.IAccessEventNA, SENTINEL
- 
Constructor SummaryConstructorsConstructorDescriptionAccessEvent(Context context, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, ServerAdapter adapter) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidgetAttribute(String key) longlongThe number of seconds elapsed between receiving the request and logging it.longThe time elapsed between receiving the request and logging it in milliseconds.intjavax.servlet.http.HttpServletRequestReturns the underlying HttpServletRequest.getRequestHeader(String key) String[]The first line of the request.javax.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- 
AccessEventpublic AccessEvent(Context context, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, ServerAdapter adapter) 
 
- 
- 
Method Details- 
getRequestReturns the underlying HttpServletRequest. After serialization the returned value will be null.- Specified by:
- getRequestin interface- IAccessEvent
- Returns:
 
- 
getResponseReturns the underlying HttpServletResponse. After serialization the returned value will be null.- Specified by:
- getResponsein interface- IAccessEvent
- Returns:
 
- 
getTimeStampDescription copied from interface:IAccessEventThe number of milliseconds elapsed from 1/1/1970 until logging event was created.- Specified by:
- getTimeStampin interface- IAccessEvent
 
- 
setTimeStamp
- 
getSequenceNumberDescription copied from interface:IAccessEventThe sequence number associated with this event.Sequence numbers, if present, should be increasing monotonically. - Specified by:
- getSequenceNumberin interface- IAccessEvent
 
- 
setSequenceNumber
- 
setThreadName- Specified by:
- setThreadNamein interface- IAccessEvent
- Parameters:
- threadName- The threadName to set.
 
- 
getThreadName- Specified by:
- getThreadNamein interface- IAccessEvent
 
- 
getRequestURI- Specified by:
- getRequestURIin interface- IAccessEvent
 
- 
getQueryString- Specified by:
- getQueryStringin interface- IAccessEvent
 
- 
getRequestURLThe first line of the request.- Specified by:
- getRequestURLin interface- IAccessEvent
 
- 
getRemoteHost- Specified by:
- getRemoteHostin interface- IAccessEvent
 
- 
getRemoteUser- Specified by:
- getRemoteUserin interface- IAccessEvent
 
- 
getProtocol- Specified by:
- getProtocolin interface- IAccessEvent
 
- 
getMethod- Specified by:
- getMethodin interface- IAccessEvent
 
- 
getSessionID- Specified by:
- getSessionIDin interface- IAccessEvent
 
- 
getServerName- Specified by:
- getServerNamein interface- IAccessEvent
 
- 
getRemoteAddr- Specified by:
- getRemoteAddrin interface- IAccessEvent
 
- 
getRequestHeader- Specified by:
- getRequestHeaderin interface- IAccessEvent
 
- 
getRequestHeaderNames- Specified by:
- getRequestHeaderNamesin interface- IAccessEvent
 
- 
getRequestHeaderMap- Specified by:
- getRequestHeaderMapin interface- IAccessEvent
 
- 
buildRequestHeaderMap
- 
buildRequestParameterMap
- 
getRequestParameterMap- Specified by:
- getRequestParameterMapin interface- IAccessEvent
 
- 
getAttribute- Specified by:
- getAttributein interface- IAccessEvent
 
- 
getRequestParameter- Specified by:
- getRequestParameterin interface- IAccessEvent
 
- 
getCookie- Specified by:
- getCookiein interface- IAccessEvent
 
- 
getContentLength- Specified by:
- getContentLengthin interface- IAccessEvent
 
- 
getStatusCode- Specified by:
- getStatusCodein interface- IAccessEvent
 
- 
getElapsedSecondsDescription copied from interface:IAccessEventThe number of seconds elapsed between receiving the request and logging it.- Specified by:
- getElapsedSecondsin interface- IAccessEvent
 
- 
getElapsedTimeDescription copied from interface:IAccessEventThe time elapsed between receiving the request and logging it in milliseconds.- Specified by:
- getElapsedTimein interface- IAccessEvent
 
- 
getRequestContent- Specified by:
- getRequestContentin interface- IAccessEvent
 
- 
getResponseContent- Specified by:
- getResponseContentin interface- IAccessEvent
 
- 
getLocalPort- Specified by:
- getLocalPortin interface- IAccessEvent
 
- 
getServerAdapter- Specified by:
- getServerAdapterin interface- IAccessEvent
 
- 
getResponseHeader- Specified by:
- getResponseHeaderin interface- IAccessEvent
 
- 
getResponseHeaderMap- Specified by:
- getResponseHeaderMapin interface- IAccessEvent
 
- 
getResponseHeaderNameList- Specified by:
- getResponseHeaderNameListin interface- IAccessEvent
 
- 
prepareForDeferredProcessing- Specified by:
- prepareForDeferredProcessingin interface- DeferredProcessingAware
 
 
-