public class NetSenderResponse
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
NetSenderResponse(java.lang.String url,
java.lang.String data)
Protected constructor for the NetSenderResponse class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData()
Returns the data that was sent.
|
java.lang.Exception |
getException()
Returns an exception, if any.
|
int |
getResponseCode()
Returns an HTTP response code of the network call.
|
java.lang.Boolean |
getSentSuccessfully()
Indicates whether the data was sent successfully.
|
java.lang.String |
getServerResponse()
Returns the server's response.
|
java.lang.String |
getUrl()
Returns the URL of the network call.
|
protected void |
setData(java.lang.String data) |
protected void |
setException(java.lang.Exception exception) |
protected void |
setResponseCode(int responseCode) |
protected void |
setSentSuccessfully(java.lang.Boolean sendSuccessfully) |
protected void |
setServerResponse(java.lang.String serverResponse) |
void |
setUrl(java.lang.String url)
Sets the URL of the network call.
|
java.lang.String |
toString() |
protected NetSenderResponse(java.lang.String url, java.lang.String data)
url
- The URL where SDK is sending the data.data
- The data.public int getResponseCode()
protected void setResponseCode(int responseCode)
public java.lang.Exception getException()
protected void setException(java.lang.Exception exception)
public java.lang.Boolean getSentSuccessfully()
protected void setSentSuccessfully(java.lang.Boolean sendSuccessfully)
public java.lang.String getServerResponse()
protected void setServerResponse(java.lang.String serverResponse)
public java.lang.String getData()
protected void setData(java.lang.String data)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- The URL.public java.lang.String toString()
toString
in class java.lang.Object