Record Class StepRequest
java.lang.Object
java.lang.Record
io.getlime.security.powerauth.lib.cmd.logging.model.StepRequest
- Record Components:
uri- Request URI.method- Request HTTP method.requestObject- Request object.headers- Request HTTP headers.
public record StepRequest(String uri, String method, Object requestObject, Map<String,?> headers)
extends Record
Class representing a request sent to intermediate server.
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.method()Returns the value of themethodrecord component.Get request object.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
StepRequest
Creates an instance of aStepRequestrecord class.- Parameters:
uri- the value for theurirecord componentmethod- the value for themethodrecord componentrequestObject- the value for therequestObjectrecord componentheaders- the value for theheadersrecord component
-
-
Method Details
-
requestObject
Get request object.- Returns:
- Request object.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-