Package com.checkout.forward.responses
Class DestinationRequest
- java.lang.Object
-
- com.checkout.forward.responses.DestinationRequest
-
public final class DestinationRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDestinationRequest.DestinationRequestBuilder
-
Constructor Summary
Constructors Constructor Description DestinationRequest()DestinationRequest(java.lang.String url, java.lang.String method, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String body)Creates a newDestinationRequestinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DestinationRequest.DestinationRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetBody()The HTTP message body of the forward request.java.util.Map<java.lang.String,java.lang.String>getHeaders()The HTTP headers of the forward request.java.lang.StringgetMethod()The HTTP method of the forward request.java.lang.StringgetUrl()The URL of the forward request.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DestinationRequest
public DestinationRequest(java.lang.String url, java.lang.String method, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String body)Creates a newDestinationRequestinstance.- Parameters:
url- The URL of the forward request. (Required)method- The HTTP method of the forward request. (Required)headers- The HTTP headers of the forward request. Encrypted and sensitive header values are redacted. (Required)body- The HTTP message body of the forward request. This is the original value used to initiate the request, with placeholder value text included. For example, {{card_number}} is not replaced with an actual card number. (Required)
-
DestinationRequest
public DestinationRequest()
-
-
Method Detail
-
builder
public static DestinationRequest.DestinationRequestBuilder builder()
-
getUrl
public java.lang.String getUrl()
The URL of the forward request. (Required)
-
getMethod
public java.lang.String getMethod()
The HTTP method of the forward request. (Required)
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
The HTTP headers of the forward request. Encrypted and sensitive header values are redacted. (Required)
-
getBody
public java.lang.String getBody()
The HTTP message body of the forward request. This is the original value used to initiate the request, with placeholder value text included. For example, {{card_number}} is not replaced with an actual card number. (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
-
-