com.wjholden.nmap
Class NmapSurvey.UploadData

java.lang.Object
  extended by java.lang.Thread
      extended by com.wjholden.nmap.NmapSurvey.UploadData
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
NmapSurvey

private class NmapSurvey.UploadData
extends java.lang.Thread

Uploads the ANDROID_ID and Build.VERSION to my webserver so that I can gather just these analytics on which I will base future development decisions.

Version:
0.1
Author:
William John Holden (wjholden@gmail.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.lang.String androidId
          Read more about ANDROID_ID
private  java.lang.String appName
          Name of the app that is being reported.
private static java.lang.String UPLOAD_URI
          The location where the data gets uploaded to.
private  java.lang.String versionSdk
          Read more about Build.VERSION
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NmapSurvey.UploadData()
          Constructor...although this does not strictly have to contain this logic inside it, I wanted it there for easier debugging.
 
Method Summary
 void run()
          Very basic Apache HTTP POST routine.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

androidId

private final transient java.lang.String androidId
Read more about ANDROID_ID


appName

private final transient java.lang.String appName
Name of the app that is being reported.


UPLOAD_URI

private static final java.lang.String UPLOAD_URI
The location where the data gets uploaded to.

See Also:
Constant Field Values

versionSdk

private final transient java.lang.String versionSdk
Read more about Build.VERSION

Constructor Detail

NmapSurvey.UploadData

public NmapSurvey.UploadData()
Constructor...although this does not strictly have to contain this logic inside it, I wanted it there for easier debugging.

Method Detail

run

public void run()
Very basic Apache HTTP POST routine.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread