AndroidLookup  0.02
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
com.jburto2.androidlookup.LookupTask Class Referenceabstract

This class is an AsyncTask that looks up something. The lookup functionality classes inherit from this. Adapted from http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception. More...

Inheritance diagram for com.jburto2.androidlookup.LookupTask:
com.jburto2.androidlookup.LookupAddressTask com.jburto2.androidlookup.LookupCNAMETask com.jburto2.androidlookup.LookupPingTask com.jburto2.androidlookup.LookupWhoisTask

Public Member Functions

Exception getException ()
 
String getExceptionMsg ()
 

Protected Member Functions

String doInBackground (String...urls)
 This function makes the function call in the background. More...
 
void onPostExecute (String str)
 Method to be done after the task has executed. More...
 

Protected Attributes

Exception exception
 This holds any exception generated from the lookup call. More...
 

Detailed Description

This class is an AsyncTask that looks up something. The lookup functionality classes inherit from this. Adapted from http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception.

Author
James Burton

Definition at line 18 of file LookupTask.java.

Member Function Documentation

protected String com.jburto2.androidlookup.LookupTask.doInBackground ( String...  urls)
protected

This function makes the function call in the background.

Parameters
urlsArray of strings that are arguments to the function.
Returns
String With the answer to the function call
null If the call failed.
Exceptions
Exceptiongenerated from InetAddress call is stored in the instance variable exception.

Definition at line 42 of file LookupTask.java.

public Exception com.jburto2.androidlookup.LookupTask.getException ( )
Returns
exception

Definition at line 64 of file LookupTask.java.

References com.jburto2.androidlookup.LookupTask.exception.

public String com.jburto2.androidlookup.LookupTask.getExceptionMsg ( )
Returns
String of the exception message.

Definition at line 73 of file LookupTask.java.

protected void com.jburto2.androidlookup.LookupTask.onPostExecute ( String  str)
protected

Method to be done after the task has executed.

Parameters
strSome string

Definition at line 54 of file LookupTask.java.

Member Data Documentation

Exception com.jburto2.androidlookup.LookupTask.exception
protected

This holds any exception generated from the lookup call.

Definition at line 25 of file LookupTask.java.

Referenced by com.jburto2.androidlookup.LookupTask.getException().


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