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 aRequestEncountered
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabsoluteUrl
record component.Returns the value of theclientIpAddress
record component.Returns the value of thecontentType
record component.List
<jakarta.servlet.http.Cookie> cookies()
Returns the value of thecookies
record component.Returns the value of theencounteredAt
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.headers()
Returns the value of theheaders
record component.method()
Returns the value of themethod
record component.Returns the value of theparameters
record component.protocol()
Returns the value of theprotocol
record component.Returns the value of thequeryString
record component.byte[]
Returns the value of therequestBody
record component.Returns the value of therequestId
record component.Returns the value of therequestUri
record component.Returns the value of therequestUrl
record component.jakarta.servlet.http.HttpSession
session()
Returns the value of thesession
record component.tenant()
Returns the value of thetenant
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserAgent
record 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 aRequestEncountered
record class.- Parameters:
requestId
- the value for therequestId
record componenttenant
- the value for thetenant
record componentmethod
- the value for themethod
record componentrequestUrl
- the value for therequestUrl
record componentabsoluteUrl
- the value for theabsoluteUrl
record componentrequestUri
- the value for therequestUri
record componentclientIpAddress
- the value for theclientIpAddress
record componentuserAgent
- the value for theuserAgent
record componentencounteredAt
- the value for theencounteredAt
record componentheaders
- the value for theheaders
record componentparameters
- the value for theparameters
record componentcontentType
- the value for thecontentType
record componentqueryString
- the value for thequeryString
record componentprotocol
- the value for theprotocol
record componentsession
- the value for thesession
record componentcookies
- the value for thecookies
record componentrequestBody
- the value for therequestBody
record 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 therequestId
record component.- Returns:
- the value of the
requestId
record component
-
tenant
Returns the value of thetenant
record component.- Returns:
- the value of the
tenant
record component
-
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
requestUrl
Returns the value of therequestUrl
record component.- Returns:
- the value of the
requestUrl
record component
-
absoluteUrl
Returns the value of theabsoluteUrl
record component.- Returns:
- the value of the
absoluteUrl
record component
-
requestUri
Returns the value of therequestUri
record component.- Returns:
- the value of the
requestUri
record component
-
clientIpAddress
Returns the value of theclientIpAddress
record component.- Returns:
- the value of the
clientIpAddress
record component
-
userAgent
Returns the value of theuserAgent
record component.- Returns:
- the value of the
userAgent
record component
-
encounteredAt
Returns the value of theencounteredAt
record component.- Returns:
- the value of the
encounteredAt
record component
-
headers
Returns the value of theheaders
record component.- Returns:
- the value of the
headers
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
contentType
Returns the value of thecontentType
record component.- Returns:
- the value of the
contentType
record component
-
queryString
Returns the value of thequeryString
record component.- Returns:
- the value of the
queryString
record component
-
protocol
Returns the value of theprotocol
record component.- Returns:
- the value of the
protocol
record component
-
session
public jakarta.servlet.http.HttpSession session()Returns the value of thesession
record component.- Returns:
- the value of the
session
record component
-
cookies
Returns the value of thecookies
record component.- Returns:
- the value of the
cookies
record component
-
requestBody
public byte[] requestBody()Returns the value of therequestBody
record component.- Returns:
- the value of the
requestBody
record component
-