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 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 a RequestEncountered record class.
      Parameters:
      requestId - the value for the requestId record component
      tenant - the value for the tenant record component
      method - the value for the method record component
      requestUrl - the value for the requestUrl record component
      absoluteUrl - the value for the absoluteUrl record component
      requestUri - the value for the requestUri record component
      clientIpAddress - the value for the clientIpAddress record component
      userAgent - the value for the userAgent record component
      encounteredAt - the value for the encounteredAt record component
      headers - the value for the headers record component
      parameters - the value for the parameters record component
      contentType - the value for the contentType record component
      queryString - the value for the queryString record component
      protocol - the value for the protocol record component
      session - the value for the session record component
      cookies - the value for the cookies record component
      requestBody - the value for the requestBody 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • requestId

      public UUID requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • tenant

      public Interactions.Tenant tenant()
      Returns the value of the tenant record component.
      Returns:
      the value of the tenant record component
    • method

      public String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • requestUrl

      public String requestUrl()
      Returns the value of the requestUrl record component.
      Returns:
      the value of the requestUrl record component
    • absoluteUrl

      public String absoluteUrl()
      Returns the value of the absoluteUrl record component.
      Returns:
      the value of the absoluteUrl record component
    • requestUri

      public String requestUri()
      Returns the value of the requestUri record component.
      Returns:
      the value of the requestUri record component
    • clientIpAddress

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

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

      public Instant encounteredAt()
      Returns the value of the encounteredAt record component.
      Returns:
      the value of the encounteredAt record component
    • headers

      public List<Interactions.Header> headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • parameters

      public Map<String,String[]> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • contentType

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

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

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

      public jakarta.servlet.http.HttpSession session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • cookies

      public List<jakarta.servlet.http.Cookie> cookies()
      Returns the value of the cookies record component.
      Returns:
      the value of the cookies record component
    • requestBody

      public byte[] requestBody()
      Returns the value of the requestBody record component.
      Returns:
      the value of the requestBody record component