Record Class StepResponse
java.lang.Object
java.lang.Record
io.getlime.security.powerauth.lib.cmd.logging.model.StepResponse
- Record Components:
statusCode- HTTP status code.responseObject- Response object.headers- HTTP headers.
public record StepResponse(int statusCode, Object responseObject, Map<String,?> headers)
extends Record
Class representing response from intermediate server.
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
ConstructorsConstructorDescriptionStepResponse(int statusCode, Object responseObject, Map<String, ?> headers) Creates an instance of aStepResponserecord class. -
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.Returns the value of theresponseObjectrecord component.intReturns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepResponse
Creates an instance of aStepResponserecord class.- Parameters:
statusCode- the value for thestatusCoderecord componentresponseObject- the value for theresponseObjectrecord componentheaders- the value for theheadersrecord 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 '=='. -
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
responseObject
Returns the value of theresponseObjectrecord component.- Returns:
- the value of the
responseObjectrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-