public class

NetworkResponse

extends PayPalRetailObject
java.lang.Object
   ↳ PayPalRetailObject
     ↳ com.paypal.paypalretailsdk.NetworkResponse

Class Overview

NetworkResponse class represents contains the response from HTTPRequest in a format that is compatible with the SDK

Summary

Public Constructors
NetworkResponse()
Public Methods
String getBody()
Response body
String getFormat()
Format of the response body
Map<String, ? super Object> getHeaders()
Response headers
String getStatusCode()
Response status code
void setBody(String value)
Response body
void setFormat(String value)
Format of the response body
void setHeaders(Map<String, ? super Object> value)
Response headers
void setStatusCode(String value)
Response status code
String toString()
Returns a string representing the serialized state of the NetworkResponse object
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NetworkResponse ()

Public Methods

public String getBody ()

Response body

public String getFormat ()

Format of the response body

public Map<String, ? super Object> getHeaders ()

Response headers

public String getStatusCode ()

Response status code

public void setBody (String value)

Response body

public void setFormat (String value)

Format of the response body

public void setHeaders (Map<String, ? super Object> value)

Response headers

public void setStatusCode (String value)

Response status code

public String toString ()

Returns a string representing the serialized state of the NetworkResponse object