Class AccessEvent
-
- All Implemented Interfaces:
-
ch.qos.logback.access.common.spi.IAccessEvent,ch.qos.logback.core.spi.DeferredProcessingAware,java.io.Serializable
public final class AccessEvent implements IAccessEvent, Serializable
Represents an access event for logging HTTP requests and responses in a Reactor Netty server environment. This class implements the Logback Access IAccessEvent interface to provide detailed information about access logs, including request and response data, headers, cookies, and contextual information.
This class includes various lazy-loaded properties to efficiently retrieve detailed information about the request and response only when needed. It supports deferred processing of logging data through the
prepareForDeferredProcessingmethod, ensuring all necessary attributes are initialized.Dmitry Sulman
-
-
Constructor Summary
Constructors Constructor Description AccessEvent(AccessLogArgProvider argProvider, AccessContext context)Initializes an AccessEvent instance with the given AccessLogArgProvider and AccessContext.
-
Method Summary
Modifier and Type Method Description UnitprepareForDeferredProcessing()HttpServletRequestgetRequest()HttpServletResponsegetResponse()<Error class: unknown class>getTimeStamp()LonggetSequenceNumber()LonggetElapsedTime()LonggetElapsedSeconds()<Error class: unknown class>getRequestURI()<Error class: unknown class>getRequestURL()<Error class: unknown class>getRemoteHost()<Error class: unknown class>getRemoteUser()<Error class: unknown class>getProtocol()<Error class: unknown class>getMethod()<Error class: unknown class>getServerName()StringgetSessionID()UnitsetThreadName(String threadName)StringgetThreadName()<Error class: unknown class>getQueryString()<Error class: unknown class>getRemoteAddr()StringgetRequestHeader(String key)Enumeration<String>getRequestHeaderNames()<Error class: unknown class>getRequestHeaderMap()<Error class: unknown class>getRequestParameterMap()StringgetAttribute(String key)Array<String>getRequestParameter(String key)<Error class: unknown class>getCookies()StringgetCookie(String key)<Error class: unknown class>getContentLength()<Error class: unknown class>getStatusCode()StringgetRequestContent()StringgetResponseContent()<Error class: unknown class>getLocalPort()<Error class: unknown class>getServerAdapter()StringgetResponseHeader(String key)<Error class: unknown class>getResponseHeaderMap()<Error class: unknown class>getResponseHeaderNameList()-
-
Constructor Detail
-
AccessEvent
AccessEvent(AccessLogArgProvider argProvider, AccessContext context)
-
-
Method Detail
-
prepareForDeferredProcessing
Unit prepareForDeferredProcessing()
-
getRequest
HttpServletRequest getRequest()
-
getResponse
HttpServletResponse getResponse()
-
getTimeStamp
<Error class: unknown class> getTimeStamp()
-
getSequenceNumber
Long getSequenceNumber()
-
getElapsedTime
Long getElapsedTime()
-
getElapsedSeconds
Long getElapsedSeconds()
-
getRequestURI
<Error class: unknown class> getRequestURI()
-
getRequestURL
<Error class: unknown class> getRequestURL()
-
getRemoteHost
<Error class: unknown class> getRemoteHost()
-
getRemoteUser
<Error class: unknown class> getRemoteUser()
-
getProtocol
<Error class: unknown class> getProtocol()
-
getMethod
<Error class: unknown class> getMethod()
-
getServerName
<Error class: unknown class> getServerName()
-
getSessionID
String getSessionID()
-
setThreadName
Unit setThreadName(String threadName)
-
getThreadName
String getThreadName()
-
getQueryString
<Error class: unknown class> getQueryString()
-
getRemoteAddr
<Error class: unknown class> getRemoteAddr()
-
getRequestHeader
String getRequestHeader(String key)
-
getRequestHeaderNames
Enumeration<String> getRequestHeaderNames()
-
getRequestHeaderMap
<Error class: unknown class> getRequestHeaderMap()
-
getRequestParameterMap
<Error class: unknown class> getRequestParameterMap()
-
getAttribute
String getAttribute(String key)
-
getRequestParameter
Array<String> getRequestParameter(String key)
-
getCookies
<Error class: unknown class> getCookies()
-
getContentLength
<Error class: unknown class> getContentLength()
-
getStatusCode
<Error class: unknown class> getStatusCode()
-
getRequestContent
String getRequestContent()
-
getResponseContent
String getResponseContent()
-
getLocalPort
<Error class: unknown class> getLocalPort()
-
getServerAdapter
<Error class: unknown class> getServerAdapter()
-
getResponseHeader
String getResponseHeader(String key)
-
getResponseHeaderMap
<Error class: unknown class> getResponseHeaderMap()
-
getResponseHeaderNameList
<Error class: unknown class> getResponseHeaderNameList()
-
-
-
-