Record Class DevModeService.HttpRequestLog

java.lang.Object
java.lang.Record
ai.nervemind.app.service.DevModeService.HttpRequestLog
Record Components:
timestamp - log timestamp
nodeId - source node ID
method - HTTP method
url - request URL
requestHeaders - request headers
requestBodyPreview - truncated request body
responseStatus - HTTP status code
responseHeaders - response headers
responseBodyPreview - truncated response body
durationMs - request duration
Enclosing class:
DevModeService

public static record DevModeService.HttpRequestLog(Instant timestamp, String nodeId, String method, String url, Map<String,String> requestHeaders, String requestBodyPreview, int responseStatus, Map<String,String> responseHeaders, String responseBodyPreview, long durationMs) extends Record
Represents an HTTP request/response log entry.
Since:
1.0.0
  • Constructor Details

    • HttpRequestLog

      public HttpRequestLog(Instant timestamp, String nodeId, String method, String url, Map<String,String> requestHeaders, String requestBodyPreview, int responseStatus, Map<String,String> responseHeaders, String responseBodyPreview, long durationMs)
      Creates an instance of a HttpRequestLog record class.
      Parameters:
      timestamp - the value for the timestamp record component
      nodeId - the value for the nodeId record component
      method - the value for the method record component
      url - the value for the url record component
      requestHeaders - the value for the requestHeaders record component
      requestBodyPreview - the value for the requestBodyPreview record component
      responseStatus - the value for the responseStatus record component
      responseHeaders - the value for the responseHeaders record component
      responseBodyPreview - the value for the responseBodyPreview record component
      durationMs - the value for the durationMs 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 the compare method from their corresponding wrapper classes.
      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.
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • nodeId

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

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

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • requestHeaders

      public Map<String,String> requestHeaders()
      Returns the value of the requestHeaders record component.
      Returns:
      the value of the requestHeaders record component
    • requestBodyPreview

      public String requestBodyPreview()
      Returns the value of the requestBodyPreview record component.
      Returns:
      the value of the requestBodyPreview record component
    • responseStatus

      public int responseStatus()
      Returns the value of the responseStatus record component.
      Returns:
      the value of the responseStatus record component
    • responseHeaders

      public Map<String,String> responseHeaders()
      Returns the value of the responseHeaders record component.
      Returns:
      the value of the responseHeaders record component
    • responseBodyPreview

      public String responseBodyPreview()
      Returns the value of the responseBodyPreview record component.
      Returns:
      the value of the responseBodyPreview record component
    • durationMs

      public long durationMs()
      Returns the value of the durationMs record component.
      Returns:
      the value of the durationMs record component