Record Class Interactions.RequestEncountered
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.Interactions.RequestEncountered
- Enclosing class:
Interactions
public static record Interactions.RequestEncountered(UUID requestId, Interactions.Tenant tenant, String method, String requestUrl, String absoluteUrl, String requestUri, String clientIpAddress, String userAgent, Instant encounteredAt, List<Interactions.Header> headers, Map<String,String[]> parameters, String contentType, String queryString, String protocol, jakarta.servlet.http.HttpSession session, List<jakarta.servlet.http.Cookie> cookies, byte[] requestBody)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequestEncountered(jakarta.servlet.http.HttpServletRequest request, byte[] body) RequestEncountered(UUID requestId, Interactions.Tenant tenant, String method, String requestUrl, String absoluteUrl, String requestUri, String clientIpAddress, String userAgent, Instant encounteredAt, List<Interactions.Header> headers, Map<String, String[]> parameters, String contentType, String queryString, String protocol, jakarta.servlet.http.HttpSession session, List<jakarta.servlet.http.Cookie> cookies, byte[] requestBody) Creates an instance of aRequestEncounteredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabsoluteUrlrecord component.Returns the value of theclientIpAddressrecord component.Returns the value of thecontentTyperecord component.List<jakarta.servlet.http.Cookie> cookies()Returns the value of thecookiesrecord component.Returns the value of theencounteredAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.method()Returns the value of themethodrecord component.Returns the value of theparametersrecord component.protocol()Returns the value of theprotocolrecord component.Returns the value of thequeryStringrecord component.byte[]Returns the value of therequestBodyrecord component.Returns the value of therequestIdrecord component.Returns the value of therequestUrirecord component.Returns the value of therequestUrlrecord component.jakarta.servlet.http.HttpSessionsession()Returns the value of thesessionrecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.
-
Constructor Details
-
RequestEncountered
public RequestEncountered(jakarta.servlet.http.HttpServletRequest request, byte[] body) throws IOException - Throws:
IOException
-
RequestEncountered
public RequestEncountered(UUID requestId, Interactions.Tenant tenant, String method, String requestUrl, String absoluteUrl, String requestUri, String clientIpAddress, String userAgent, Instant encounteredAt, List<Interactions.Header> headers, Map<String, String[]> parameters, String contentType, String queryString, String protocol, jakarta.servlet.http.HttpSession session, List<jakarta.servlet.http.Cookie> cookies, byte[] requestBody) Creates an instance of aRequestEncounteredrecord class.- Parameters:
requestId- the value for therequestIdrecord componenttenant- the value for thetenantrecord componentmethod- the value for themethodrecord componentrequestUrl- the value for therequestUrlrecord componentabsoluteUrl- the value for theabsoluteUrlrecord componentrequestUri- the value for therequestUrirecord componentclientIpAddress- the value for theclientIpAddressrecord componentuserAgent- the value for theuserAgentrecord componentencounteredAt- the value for theencounteredAtrecord componentheaders- the value for theheadersrecord componentparameters- the value for theparametersrecord componentcontentType- the value for thecontentTyperecord componentqueryString- the value for thequeryStringrecord componentprotocol- the value for theprotocolrecord componentsession- the value for thesessionrecord componentcookies- the value for thecookiesrecord componentrequestBody- the value for therequestBodyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
requestUrl
Returns the value of therequestUrlrecord component.- Returns:
- the value of the
requestUrlrecord component
-
absoluteUrl
Returns the value of theabsoluteUrlrecord component.- Returns:
- the value of the
absoluteUrlrecord component
-
requestUri
Returns the value of therequestUrirecord component.- Returns:
- the value of the
requestUrirecord component
-
clientIpAddress
Returns the value of theclientIpAddressrecord component.- Returns:
- the value of the
clientIpAddressrecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-
encounteredAt
Returns the value of theencounteredAtrecord component.- Returns:
- the value of the
encounteredAtrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
queryString
Returns the value of thequeryStringrecord component.- Returns:
- the value of the
queryStringrecord component
-
protocol
Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
session
public jakarta.servlet.http.HttpSession session()Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
cookies
Returns the value of thecookiesrecord component.- Returns:
- the value of the
cookiesrecord component
-
requestBody
public byte[] requestBody()Returns the value of therequestBodyrecord component.- Returns:
- the value of the
requestBodyrecord component
-