Package com.inttegro.diagnostics
Record Class ErrorReport.HttpContext
java.lang.Object
java.lang.Record
com.inttegro.diagnostics.ErrorReport.HttpContext
- Enclosing class:
- ErrorReport
-
Constructor Summary
Constructors -
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.Returns the value of therequestIdrecord component.route()Returns the value of therouterecord component.Returns the value of theserverAddressrecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HttpContext
public HttpContext(String method, String route, String serverAddress, Integer statusCode, String requestId, long durationMs) Creates an instance of aHttpContextrecord class.- Parameters:
method- the value for themethodrecord componentroute- the value for therouterecord componentserverAddress- the value for theserverAddressrecord componentstatusCode- the value for thestatusCoderecord componentrequestId- the value for therequestIdrecord componentdurationMs- the value for thedurationMsrecord 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 '=='. -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
serverAddress
Returns the value of theserverAddressrecord component.- Returns:
- the value of the
serverAddressrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-