Record Class DevModeService.HttpRequestLog
java.lang.Object
java.lang.Record
ai.nervemind.app.service.DevModeService.HttpRequestLog
- Record Components:
timestamp- log timestampnodeId- source node IDmethod- HTTP methodurl- request URLrequestHeaders- request headersrequestBodyPreview- truncated request bodyresponseStatus- HTTP status coderesponseHeaders- response headersresponseBodyPreview- truncated response bodydurationMs- 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 Summary
ConstructorsConstructorDescriptionHttpRequestLog(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 aHttpRequestLogrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.nodeId()Returns the value of thenodeIdrecord component.Returns the value of therequestBodyPreviewrecord component.Returns the value of therequestHeadersrecord component.Returns the value of theresponseBodyPreviewrecord component.Returns the value of theresponseHeadersrecord component.intReturns the value of theresponseStatusrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
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 aHttpRequestLogrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentnodeId- the value for thenodeIdrecord componentmethod- the value for themethodrecord componenturl- the value for theurlrecord componentrequestHeaders- the value for therequestHeadersrecord componentrequestBodyPreview- the value for therequestBodyPreviewrecord componentresponseStatus- the value for theresponseStatusrecord componentresponseHeaders- the value for theresponseHeadersrecord componentresponseBodyPreview- the value for theresponseBodyPreviewrecord componentdurationMs- the value for thedurationMsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
timestamp
-
nodeId
-
method
-
url
-
requestHeaders
Returns the value of therequestHeadersrecord component.- Returns:
- the value of the
requestHeadersrecord component
-
requestBodyPreview
Returns the value of therequestBodyPreviewrecord component.- Returns:
- the value of the
requestBodyPreviewrecord component
-
responseStatus
public int responseStatus()Returns the value of theresponseStatusrecord component.- Returns:
- the value of the
responseStatusrecord component
-
responseHeaders
Returns the value of theresponseHeadersrecord component.- Returns:
- the value of the
responseHeadersrecord component
-
responseBodyPreview
Returns the value of theresponseBodyPreviewrecord component.- Returns:
- the value of the
responseBodyPreviewrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-