public class

TwilioRestResponse

extends Object
java.lang.Object
   ↳ com.twilio.sdk.TwilioRestResponse

Class Overview

TwilioRestResponse holds all the REST response data Before using the reponse, check IsError to see if an exception occurred with the data sent to Twilio ResponseXml will contain a SimpleXml object with the response xml ResponseText contains the raw string response Url and QueryString are from the request HttpStatus is the response code of the request

Summary

Fields
private boolean error
private int httpStatus
private String queryString
private String responseText
private String url
Public Constructors
TwilioRestResponse(String url, String text, int status)
Public Methods
int getHttpStatus()
String getQueryString()
String getResponseText()
String getUrl()
boolean isError()
void setError(boolean error)
void setHttpStatus(int httpStatus)
void setQueryString(String queryString)
void setResponseText(String responseText)
void setUrl(String url)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private boolean error

private int httpStatus

private String queryString

private String responseText

private String url

Public Constructors

public TwilioRestResponse (String url, String text, int status)

Parameters
url
text
status

Public Methods

public int getHttpStatus ()

public String getQueryString ()

public String getResponseText ()

public String getUrl ()

public boolean isError ()

public void setError (boolean error)

Parameters
error

public void setHttpStatus (int httpStatus)

Parameters
httpStatus

public void setQueryString (String queryString)

Parameters
queryString

public void setResponseText (String responseText)

Parameters
responseText

public void setUrl (String url)

Parameters
url

public String toString ()