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 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 a HttpRequestRecordDto record class.
      Parameters:
      id - the value for the id record component
      created - the value for the created record component
      receivedAt - the value for the receivedAt record component
      duration - the value for the duration record component
      exceptionRecordId - the value for the exceptionRecordId record component
      traceId - the value for the traceId record component
      parentId - the value for the parentId record component
      httpMethod - the value for the httpMethod record component
      httpParams - the value for the httpParams record component
      protocol - the value for the protocol record component
      hostname - the value for the hostname record component
      port - the value for the port record component
      contextPath - the value for the contextPath record component
      path - the value for the path record component
      queryString - the value for the queryString record component
      binaryBody - the value for the binaryBody record component
      ip - the value for the ip record component
      userRoles - the value for the userRoles record component
      userToken - the value for the userToken record component
      acceptCharset - the value for the acceptCharset record component
      acceptEncoding - the value for the acceptEncoding record component
      acceptLanguage - the value for the acceptLanguage record component
      accept - the value for the accept record component
      cacheControl - the value for the cacheControl record component
      connection - the value for the connection record component
      contentEncoding - the value for the contentEncoding record component
      contentLanguage - the value for the contentLanguage record component
      contentLength - the value for the contentLength record component
      contentType - the value for the contentType record component
      cookie - the value for the cookie record component
      dnt - the value for the dnt record component
      host - the value for the host record component
      ifModifiedSince - the value for the ifModifiedSince record component
      origin - the value for the origin record component
      pragma - the value for the pragma record component
      referer - the value for the referer record component
      userAgent - the value for the userAgent record component
      xForwardedFor - the value for the xForwardedFor record component
      xRequestedWith - the value for the xRequestedWith record component
      otherHeaders - the value for the otherHeaders record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • created

      public Date created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • receivedAt

      public Date receivedAt()
      Returns the value of the receivedAt record component.
      Returns:
      the value of the receivedAt record component
    • duration

      public Long duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • exceptionRecordId

      public String exceptionRecordId()
      Returns the value of the exceptionRecordId record component.
      Returns:
      the value of the exceptionRecordId record component
    • traceId

      public String traceId()
      Returns the value of the traceId record component.
      Returns:
      the value of the traceId record component
    • parentId

      public String parentId()
      Returns the value of the parentId record component.
      Returns:
      the value of the parentId record component
    • httpMethod

      public String httpMethod()
      Returns the value of the httpMethod record component.
      Returns:
      the value of the httpMethod record component
    • httpParams

      public String httpParams()
      Returns the value of the httpParams record component.
      Returns:
      the value of the httpParams record component
    • protocol

      public String protocol()
      Returns the value of the protocol record component.
      Returns:
      the value of the protocol record component
    • hostname

      public String hostname()
      Returns the value of the hostname record component.
      Returns:
      the value of the hostname record component
    • port

      public int port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component
    • contextPath

      public String contextPath()
      Returns the value of the contextPath record component.
      Returns:
      the value of the contextPath record component
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • queryString

      public String queryString()
      Returns the value of the queryString record component.
      Returns:
      the value of the queryString record component
    • binaryBody

      public byte[] binaryBody()
      Returns the value of the binaryBody record component.
      Returns:
      the value of the binaryBody record component
    • ip

      public String ip()
      Returns the value of the ip record component.
      Returns:
      the value of the ip record component
    • userRoles

      public String userRoles()
      Returns the value of the userRoles record component.
      Returns:
      the value of the userRoles record component
    • userToken

      public String userToken()
      Returns the value of the userToken record component.
      Returns:
      the value of the userToken record component
    • acceptCharset

      public String acceptCharset()
      Returns the value of the acceptCharset record component.
      Returns:
      the value of the acceptCharset record component
    • acceptEncoding

      public String acceptEncoding()
      Returns the value of the acceptEncoding record component.
      Returns:
      the value of the acceptEncoding record component
    • acceptLanguage

      public String acceptLanguage()
      Returns the value of the acceptLanguage record component.
      Returns:
      the value of the acceptLanguage record component
    • accept

      public String accept()
      Returns the value of the accept record component.
      Returns:
      the value of the accept record component
    • cacheControl

      public String cacheControl()
      Returns the value of the cacheControl record component.
      Returns:
      the value of the cacheControl record component
    • connection

      public String connection()
      Returns the value of the connection record component.
      Returns:
      the value of the connection record component
    • contentEncoding

      public String contentEncoding()
      Returns the value of the contentEncoding record component.
      Returns:
      the value of the contentEncoding record component
    • contentLanguage

      public String contentLanguage()
      Returns the value of the contentLanguage record component.
      Returns:
      the value of the contentLanguage record component
    • contentLength

      public String contentLength()
      Returns the value of the contentLength record component.
      Returns:
      the value of the contentLength record component
    • contentType

      public String contentType()
      Returns the value of the contentType record component.
      Returns:
      the value of the contentType record component
    • cookie

      public String cookie()
      Returns the value of the cookie record component.
      Returns:
      the value of the cookie record component
    • dnt

      public String dnt()
      Returns the value of the dnt record component.
      Returns:
      the value of the dnt record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • ifModifiedSince

      public String ifModifiedSince()
      Returns the value of the ifModifiedSince record component.
      Returns:
      the value of the ifModifiedSince record component
    • origin

      public String origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • pragma

      public String pragma()
      Returns the value of the pragma record component.
      Returns:
      the value of the pragma record component
    • referer

      public String referer()
      Returns the value of the referer record component.
      Returns:
      the value of the referer record component
    • userAgent

      public String userAgent()
      Returns the value of the userAgent record component.
      Returns:
      the value of the userAgent record component
    • xForwardedFor

      public String xForwardedFor()
      Returns the value of the xForwardedFor record component.
      Returns:
      the value of the xForwardedFor record component
    • xRequestedWith

      public String xRequestedWith()
      Returns the value of the xRequestedWith record component.
      Returns:
      the value of the xRequestedWith record component
    • otherHeaders

      public String otherHeaders()
      Returns the value of the otherHeaders record component.
      Returns:
      the value of the otherHeaders record component