This class is an LookupTask that looks up a hostname given an IP address and an IP address if given a hostname. Adapted from http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception.
More...
This class is an LookupTask that looks up a hostname given an IP address and an IP address if given a hostname. Adapted from http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception.
- Author
- James Burton
Definition at line 19 of file LookupWhoisTask.java.
protected String com.jburto2.androidlookup.LookupWhoisTask.doInBackground |
( |
String... |
urls | ) |
|
|
protected |
This function uses org.apache.commons.net.whois.WhoisClient to get the whois information for a site.
Adapted from from http://www.mkyong.com/java/java-whois-example/
- Parameters
-
urls | Array of strings that are arguments to the function. url[0] is the address to lookup. |
- Returns
- String that represents either the IP address or the hostname if call succeeded.
-
null If the call failed.
- Exceptions
-
Exception | generated from InetAddress call is stored in the public instance variable exception. |
Definition at line 37 of file LookupWhoisTask.java.
protected void com.jburto2.androidlookup.LookupWhoisTask.onPostExecute |
( |
String |
str | ) |
|
|
protected |
The documentation for this class was generated from the following file: