Splunk MINT SDK for Android  4.4
 All Classes Namespaces Files Functions Variables
com.splunk.mint.NetSenderResponse Class Reference

Public Member Functions

int getResponseCode ()
 
Exception getException ()
 
Boolean getSentSuccessfully ()
 
String getServerResponse ()
 
String getData ()
 
String getUrl ()
 
void setUrl (String url)
 
String toString ()
 

Protected Member Functions

 NetSenderResponse (final String url, final String data)
 
void setResponseCode (int responseCode)
 
void setException (Exception exception)
 
void setSentSuccessfully (Boolean sendSuccessfully)
 
void setServerResponse (String serverResponse)
 
void setData (String data)
 

Detailed Description

The NetSenderResponse class is a callback from the MintCallback interface, which returns a NetSenderResponse object for a data send attempt. This object contains information about the data to be saved, the file path, the exception (if any, or null), and a Boolean indicating whether the data was sent successfully.

Constructor & Destructor Documentation

com.splunk.mint.NetSenderResponse.NetSenderResponse ( final String  url,
final String  data 
)
inlineprotected

Protected constructor for the NetSenderResponse class. Users will never use this constructor.

Member Function Documentation

String com.splunk.mint.NetSenderResponse.getData ( )
inline

Returns the data that was sent.

Returns
The data.
Exception com.splunk.mint.NetSenderResponse.getException ( )
inline

Returns an exception, if any.

Returns
The exception or null.
int com.splunk.mint.NetSenderResponse.getResponseCode ( )
inline

Returns an HTTP response code of the network call.

Returns
The response code.
Boolean com.splunk.mint.NetSenderResponse.getSentSuccessfully ( )
inline

Indicates whether the data was sent successfully.

Returns
true if successful, false if not.
String com.splunk.mint.NetSenderResponse.getServerResponse ( )
inline

Returns the server's response.

Returns
The response.
String com.splunk.mint.NetSenderResponse.getUrl ( )
inline

Returns the URL of the network call.

Returns
The URL.
void com.splunk.mint.NetSenderResponse.setData ( String  data)
inlineprotected
void com.splunk.mint.NetSenderResponse.setException ( Exception  exception)
inlineprotected
void com.splunk.mint.NetSenderResponse.setResponseCode ( int  responseCode)
inlineprotected
void com.splunk.mint.NetSenderResponse.setSentSuccessfully ( Boolean  sendSuccessfully)
inlineprotected
void com.splunk.mint.NetSenderResponse.setServerResponse ( String  serverResponse)
inlineprotected
void com.splunk.mint.NetSenderResponse.setUrl ( String  url)
inline

Sets the url

Parameters
url
String com.splunk.mint.NetSenderResponse.toString ( )
inline

The documentation for this class was generated from the following file: