public class AmazonPayResponse extends Object
| Constructor and Description |
|---|
AmazonPayResponse() |
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration() |
Map<String,String> |
getHeaders() |
String |
getMethod() |
String |
getRawRequest() |
String |
getRawResponse() |
String |
getRequestId() |
org.json.JSONObject |
getResponse() |
int |
getRetries() |
int |
getStatus() |
URI |
getUrl() |
boolean |
isSuccess() |
void |
setDuration(long duration) |
void |
setHeaders(Map<String,String> headers) |
void |
setMethod(String method) |
void |
setRawRequest(String rawRequest) |
void |
setRawResponse(String rawResponse) |
void |
setRequestId(String requestId) |
void |
setResponse(org.json.JSONObject response) |
void |
setRetries(int retries) |
void |
setStatus(int status) |
void |
setUrl(URI url) |
String |
toString() |
public URI getUrl()
public void setUrl(URI url)
url - is the Request url of type URIpublic String getMethod()
public void setMethod(String method)
method - is the HTTP method invokedpublic String getRawRequest()
public void setRawRequest(String rawRequest)
rawRequest - is the Request payloadpublic org.json.JSONObject getResponse()
public void setResponse(org.json.JSONObject response)
response - is Response from API call of type JSONpublic String getRawResponse()
public void setRawResponse(String rawResponse)
rawResponse - is the Raw Response returned from API callpublic String getRequestId()
public void setRequestId(String requestId)
requestId - is the Request Id from API callpublic int getStatus()
public void setStatus(int status)
status - Http Status Code of type intpublic int getRetries()
public void setRetries(int retries)
retries - no. of retries to run the requestpublic long getDuration()
public void setDuration(long duration)
duration - the time taken to run the request in millisecondspublic Map<String,String> getHeaders()
public void setHeaders(Map<String,String> headers)
headers - the headers provided to the requestpublic boolean isSuccess()
Copyright © 2025. All rights reserved.