Package ch.qos.logback.access.spi
Interface IAccessEvent
- All Superinterfaces:
DeferredProcessingAware
- All Known Implementing Classes:
AccessEvent
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, Jörn Huxhorn
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(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.voidsetThreadName(String threadName) Methods inherited from interface ch.qos.logback.core.spi.DeferredProcessingAware
prepareForDeferredProcessing
-
Field Details
-
NA
- See Also:
-
SENTINEL
- See Also:
-
-
Method Details
-
getRequest
javax.servlet.http.HttpServletRequest getRequest()Returns the underlying HttpServletRequest. After serialization the returned value will be null.- Returns:
-
getResponse
javax.servlet.http.HttpServletResponse getResponse()Returns the underlying HttpServletResponse. After serialization the returned value will be null.- Returns:
-
getTimeStamp
long getTimeStamp()The number of milliseconds elapsed from 1/1/1970 until logging event was created. -
getSequenceNumber
long getSequenceNumber()The sequence number associated with this event.Sequence numbers, if present, should be increasing monotonically.
- Since:
- 1.3.0
-
getElapsedTime
long getElapsedTime()The time elapsed between receiving the request and logging it in milliseconds. -
getElapsedSeconds
long getElapsedSeconds()The number of seconds elapsed between receiving the request and logging it. -
getRequestURI
-
getRequestURL
The first line of the request. -
getRemoteHost
-
getRemoteUser
-
getProtocol
-
getMethod
-
getServerName
-
getSessionID
-
setThreadName
-
getThreadName
-
getQueryString
-
getRemoteAddr
-
getRequestHeader
-
getRequestHeaderNames
-
getRequestHeaderMap
-
getRequestParameterMap
-
getAttribute
-
getRequestParameter
-
getCookie
-
getContentLength
long getContentLength() -
getStatusCode
int getStatusCode() -
getRequestContent
-
getResponseContent
-
getLocalPort
int getLocalPort() -
getServerAdapter
-
getResponseHeader
-
getResponseHeaderMap
-
getResponseHeaderNameList
-