Package com.checkout.forward.responses
Class DestinationResponse
- java.lang.Object
-
- com.checkout.forward.responses.DestinationResponse
-
public final class DestinationResponse extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDestinationResponse.DestinationResponseBuilder
-
Constructor Summary
Constructors Constructor Description DestinationResponse()DestinationResponse(int status, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.lang.String body)Creates a newDestinationResponseinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DestinationResponse.DestinationResponseBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetBody()The destination response's HTTP message body (Required)java.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaders()The destination response's HTTP headers.intgetStatus()The HTTP status code of the destination response (Required)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DestinationResponse
public DestinationResponse(int status, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.lang.String body)Creates a newDestinationResponseinstance.- Parameters:
status- The HTTP status code of the destination response (Required)headers- The destination response's HTTP headers. (Required)body- The destination response's HTTP message body (Required)
-
DestinationResponse
public DestinationResponse()
-
-
Method Detail
-
builder
public static DestinationResponse.DestinationResponseBuilder builder()
-
getStatus
public int getStatus()
The HTTP status code of the destination response (Required)
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
The destination response's HTTP headers. (Required)
-
getBody
public java.lang.String getBody()
The destination response's HTTP message body (Required)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-