public class SalesforceResponse
extends java.lang.Object
SalesforceResponse
is a wrapper over the data returned by Salesforce on executing any request to
Salesforce.Constructor and Description |
---|
SalesforceResponse() |
SalesforceResponse(java.lang.Integer code,
java.lang.String body) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAccessTokenUpdated() |
java.lang.String |
getBody() |
JSONObject |
getBodyAsJSON()
Converts the JSON format returned from SF into an JSON Object.
|
java.lang.Integer |
getCode() |
void |
setAccessTokenUpdated(java.lang.Boolean accessTokenUpdated) |
void |
setBody(java.lang.String body) |
void |
setCode(java.lang.Integer code) |
public SalesforceResponse(java.lang.Integer code, java.lang.String body)
public SalesforceResponse()
public java.lang.String getBody()
public void setBody(java.lang.String body)
public java.lang.Integer getCode()
public void setCode(java.lang.Integer code)
public java.lang.Boolean getAccessTokenUpdated()
public void setAccessTokenUpdated(java.lang.Boolean accessTokenUpdated)
public JSONObject getBodyAsJSON() throws JSONException
JSONException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"