| 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
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
String
queryString
private
String
responseText
Public Constructors
public
TwilioRestResponse
(String url, String text, int status)
Public Methods
public
int
getHttpStatus
()
public
String
getQueryString
()
public
String
getResponseText
()
public
boolean
isError
()
public
void
setError
(boolean error)
public
void
setHttpStatus
(int httpStatus)
public
void
setQueryString
(String queryString)
public
void
setResponseText
(String responseText)
public
void
setUrl
(String url)
public
String
toString
()