Record Class HttpRequestRecordDto
java.lang.Object
java.lang.Record
io.datarouter.instrumentation.exception.HttpRequestRecordDto
- All Implemented Interfaces:
TaskExecutionRecordDto
public record HttpRequestRecordDto(String id, Date created, Date receivedAt, Long duration, String exceptionRecordId, String traceId, String parentId, String httpMethod, String httpParams, String protocol, String hostname, int port, String contextPath, String path, String queryString, byte[] binaryBody, String ip, String userRoles, String userToken, String acceptCharset, String acceptEncoding, String acceptLanguage, String accept, String cacheControl, String connection, String contentEncoding, String contentLanguage, String contentLength, String contentType, String cookie, String dnt, String host, String ifModifiedSince, String origin, String pragma, String referer, String userAgent, String xForwardedFor, String xRequestedWith, String otherHeaders)
extends Record
implements TaskExecutionRecordDto
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final byte[]static final int -
Constructor Summary
ConstructorsConstructorDescriptionHttpRequestRecordDto(String id, Date created, Date receivedAt, Long duration, String exceptionRecordId, String traceId, String parentId, String httpMethod, String httpParams, String protocol, String hostname, int port, String contextPath, String path, String queryString, byte[] binaryBody, String ip, String userRoles, String userToken, String acceptCharset, String acceptEncoding, String acceptLanguage, String accept, String cacheControl, String connection, String contentEncoding, String contentLanguage, String contentLength, String contentType, String cookie, String dnt, String host, String ifModifiedSince, String origin, String pragma, String referer, String userAgent, String xForwardedFor, String xRequestedWith, String otherHeaders) Creates an instance of aHttpRequestRecordDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccept()Returns the value of theacceptrecord component.Returns the value of theacceptCharsetrecord component.Returns the value of theacceptEncodingrecord component.Returns the value of theacceptLanguagerecord component.byte[]Returns the value of thebinaryBodyrecord component.Returns the value of thecacheControlrecord component.Returns the value of theconnectionrecord component.Returns the value of thecontentEncodingrecord component.Returns the value of thecontentLanguagerecord component.Returns the value of thecontentLengthrecord component.Returns the value of thecontentTyperecord component.Returns the value of thecontextPathrecord component.cookie()Returns the value of thecookierecord component.created()Returns the value of thecreatedrecord component.dnt()Returns the value of thedntrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionRecordIdrecord component.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.hostname()Returns the value of thehostnamerecord component.Returns the value of thehttpMethodrecord component.Returns the value of thehttpParamsrecord component.id()Returns the value of theidrecord component.Returns the value of theifModifiedSincerecord component.ip()Returns the value of theiprecord component.origin()Returns the value of theoriginrecord component.Returns the value of theotherHeadersrecord component.parentId()Returns the value of theparentIdrecord component.path()Returns the value of thepathrecord component.intport()Returns the value of theportrecord component.pragma()Returns the value of thepragmarecord component.protocol()Returns the value of theprotocolrecord component.Returns the value of thequeryStringrecord component.Returns the value of thereceivedAtrecord component.referer()Returns the value of therefererrecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.Returns the value of theuserAgentrecord component.Returns the value of theuserRolesrecord component.Returns the value of theuserTokenrecord component.Returns the value of thexForwardedForrecord component.Returns the value of thexRequestedWithrecord component.
-
Field Details
-
CONFIDENTIALITY_MSG_BYTES
public static final byte[] CONFIDENTIALITY_MSG_BYTES -
BINARY_BODY_MAX_SIZE
public static final int BINARY_BODY_MAX_SIZE- See Also:
-
MAX_LENGTH_HTTP_PARAMS
public static final int MAX_LENGTH_HTTP_PARAMS- See Also:
-
-
Constructor Details
-
HttpRequestRecordDto
public HttpRequestRecordDto(String id, Date created, Date receivedAt, Long duration, String exceptionRecordId, String traceId, String parentId, String httpMethod, String httpParams, String protocol, String hostname, int port, String contextPath, String path, String queryString, byte[] binaryBody, String ip, String userRoles, String userToken, String acceptCharset, String acceptEncoding, String acceptLanguage, String accept, String cacheControl, String connection, String contentEncoding, String contentLanguage, String contentLength, String contentType, String cookie, String dnt, String host, String ifModifiedSince, String origin, String pragma, String referer, String userAgent, String xForwardedFor, String xRequestedWith, String otherHeaders) Creates an instance of aHttpRequestRecordDtorecord class.- Parameters:
id- the value for theidrecord componentcreated- the value for thecreatedrecord componentreceivedAt- the value for thereceivedAtrecord componentduration- the value for thedurationrecord componentexceptionRecordId- the value for theexceptionRecordIdrecord componenttraceId- the value for thetraceIdrecord componentparentId- the value for theparentIdrecord componenthttpMethod- the value for thehttpMethodrecord componenthttpParams- the value for thehttpParamsrecord componentprotocol- the value for theprotocolrecord componenthostname- the value for thehostnamerecord componentport- the value for theportrecord componentcontextPath- the value for thecontextPathrecord componentpath- the value for thepathrecord componentqueryString- the value for thequeryStringrecord componentbinaryBody- the value for thebinaryBodyrecord componentip- the value for theiprecord componentuserRoles- the value for theuserRolesrecord componentuserToken- the value for theuserTokenrecord componentacceptCharset- the value for theacceptCharsetrecord componentacceptEncoding- the value for theacceptEncodingrecord componentacceptLanguage- the value for theacceptLanguagerecord componentaccept- the value for theacceptrecord componentcacheControl- the value for thecacheControlrecord componentconnection- the value for theconnectionrecord componentcontentEncoding- the value for thecontentEncodingrecord componentcontentLanguage- the value for thecontentLanguagerecord componentcontentLength- the value for thecontentLengthrecord componentcontentType- the value for thecontentTyperecord componentcookie- the value for thecookierecord componentdnt- the value for thedntrecord componenthost- the value for thehostrecord componentifModifiedSince- the value for theifModifiedSincerecord componentorigin- the value for theoriginrecord componentpragma- the value for thepragmarecord componentreferer- the value for therefererrecord componentuserAgent- the value for theuserAgentrecord componentxForwardedFor- the value for thexForwardedForrecord componentxRequestedWith- the value for thexRequestedWithrecord componentotherHeaders- the value for theotherHeadersrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
receivedAt
Returns the value of thereceivedAtrecord component.- Returns:
- the value of the
receivedAtrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
exceptionRecordId
Returns the value of theexceptionRecordIdrecord component.- Returns:
- the value of the
exceptionRecordIdrecord component
-
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
httpMethod
Returns the value of thehttpMethodrecord component.- Returns:
- the value of the
httpMethodrecord component
-
httpParams
Returns the value of thehttpParamsrecord component.- Returns:
- the value of the
httpParamsrecord component
-
protocol
Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
contextPath
Returns the value of thecontextPathrecord component.- Returns:
- the value of the
contextPathrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
queryString
Returns the value of thequeryStringrecord component.- Returns:
- the value of the
queryStringrecord component
-
binaryBody
public byte[] binaryBody()Returns the value of thebinaryBodyrecord component.- Returns:
- the value of the
binaryBodyrecord component
-
ip
Returns the value of theiprecord component.- Returns:
- the value of the
iprecord component
-
userRoles
Returns the value of theuserRolesrecord component.- Returns:
- the value of the
userRolesrecord component
-
userToken
Returns the value of theuserTokenrecord component.- Returns:
- the value of the
userTokenrecord component
-
acceptCharset
Returns the value of theacceptCharsetrecord component.- Returns:
- the value of the
acceptCharsetrecord component
-
acceptEncoding
Returns the value of theacceptEncodingrecord component.- Returns:
- the value of the
acceptEncodingrecord component
-
acceptLanguage
Returns the value of theacceptLanguagerecord component.- Returns:
- the value of the
acceptLanguagerecord component
-
accept
Returns the value of theacceptrecord component.- Returns:
- the value of the
acceptrecord component
-
cacheControl
Returns the value of thecacheControlrecord component.- Returns:
- the value of the
cacheControlrecord component
-
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
contentEncoding
Returns the value of thecontentEncodingrecord component.- Returns:
- the value of the
contentEncodingrecord component
-
contentLanguage
Returns the value of thecontentLanguagerecord component.- Returns:
- the value of the
contentLanguagerecord component
-
contentLength
Returns the value of thecontentLengthrecord component.- Returns:
- the value of the
contentLengthrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
cookie
Returns the value of thecookierecord component.- Returns:
- the value of the
cookierecord component
-
dnt
Returns the value of thedntrecord component.- Returns:
- the value of the
dntrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
ifModifiedSince
Returns the value of theifModifiedSincerecord component.- Returns:
- the value of the
ifModifiedSincerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
pragma
Returns the value of thepragmarecord component.- Returns:
- the value of the
pragmarecord component
-
referer
Returns the value of therefererrecord component.- Returns:
- the value of the
refererrecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-
xForwardedFor
Returns the value of thexForwardedForrecord component.- Returns:
- the value of the
xForwardedForrecord component
-
xRequestedWith
Returns the value of thexRequestedWithrecord component.- Returns:
- the value of the
xRequestedWithrecord component
-
otherHeaders
Returns the value of theotherHeadersrecord component.- Returns:
- the value of the
otherHeadersrecord component
-