public abstract class PayPalBaseRequest extends java.lang.Object implements PayPalRequest
Modifier and Type | Field and Description |
---|---|
private com.paypal.base.rest.APIContext |
apiContext |
private com.paypal.base.rest.HttpMethod |
httpMethod |
private java.lang.String |
payload |
private java.lang.String |
targetResouce |
Constructor and Description |
---|
PayPalBaseRequest() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken() |
com.paypal.base.rest.APIContext |
getApiContext() |
java.util.Map<java.lang.String,java.lang.String> |
getHttpHeaders() |
com.paypal.base.rest.HttpMethod |
getHttpMethod() |
java.lang.String |
getPayload() |
java.lang.String |
getRequestBody() |
java.lang.String |
getRequestId() |
java.lang.String |
getTargetResource() |
void |
setApiContext(com.paypal.base.rest.APIContext apiContext) |
void |
setHttpHeader(java.lang.String headerName,
java.lang.String headerValue) |
void |
setHttpHeaders(java.util.Map<java.lang.String,java.lang.String> httpHeaders) |
void |
setHttpMethod(com.paypal.base.rest.HttpMethod httpMethod) |
void |
setPayload(java.lang.String payload) |
void |
setTargetResouce(java.lang.String target) |
private transient java.lang.String targetResouce
private transient java.lang.String payload
private transient com.paypal.base.rest.HttpMethod httpMethod
private transient com.paypal.base.rest.APIContext apiContext
public java.lang.String getAccessToken()
getAccessToken
in interface PayPalRequest
public java.lang.String getRequestId()
getRequestId
in interface PayPalRequest
public void setPayload(java.lang.String payload)
setPayload
in interface PayPalRequest
public java.lang.String getPayload()
getPayload
in interface PayPalRequest
public void setApiContext(com.paypal.base.rest.APIContext apiContext)
setApiContext
in interface PayPalRequest
public com.paypal.base.rest.APIContext getApiContext()
getApiContext
in interface PayPalRequest
public void setHttpHeader(java.lang.String headerName, java.lang.String headerValue)
setHttpHeader
in interface PayPalRequest
public void setHttpHeaders(java.util.Map<java.lang.String,java.lang.String> httpHeaders)
setHttpHeaders
in interface PayPalRequest
public java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
getHttpHeaders
in interface PayPalRequest
public void setTargetResouce(java.lang.String target)
setTargetResouce
in interface PayPalRequest
public java.lang.String getTargetResource()
getTargetResource
in interface PayPalRequest
public void setHttpMethod(com.paypal.base.rest.HttpMethod httpMethod)
setHttpMethod
in interface PayPalRequest
public com.paypal.base.rest.HttpMethod getHttpMethod()
getHttpMethod
in interface PayPalRequest
public java.lang.String getRequestBody()
getRequestBody
in interface PayPalRequest