Splunk MINT SDK for Android  5.0
 All Classes 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 
)
protected

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

Member Function Documentation

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

Returns the data that was sent.

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

Returns an exception, if any.

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

Returns an HTTP response code of the network call.

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

Indicates whether the data was sent successfully.

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

Returns the server's response.

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

Returns the URL of the network call.

Returns
The URL.
void com.splunk.mint.NetSenderResponse.setUrl ( String  url)

Sets the URL of the network call.

Parameters
urlThe URL.

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