com.gtosoft.libvoyager.net
Class GTONet

java.lang.Object
  extended by com.gtosoft.libvoyager.net.GTONet

public class GTONet
extends java.lang.Object

This class brokers data between Voyager and network assets.


Constructor Summary
GTONet(java.util.List<NameValuePair> nameValuePairs)
           
 
Method Summary
 HttpResponse postData(java.lang.String url, java.util.List<NameValuePair> args)
           
 void shutdown()
          convenience method.
 void startWorkerThread()
          Creates a new "worker" thread, to which we can post new work to be performed asynchronously from the main (UI) thread.
 void stopThreads()
          Stop all threads owned by this class instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTONet

public GTONet(java.util.List<NameValuePair> nameValuePairs)
Method Detail

stopThreads

public void stopThreads()
Stop all threads owned by this class instance.


shutdown

public void shutdown()
convenience method.


startWorkerThread

public void startWorkerThread()
Creates a new "worker" thread, to which we can post new work to be performed asynchronously from the main (UI) thread.


postData

public HttpResponse postData(java.lang.String url,
                             java.util.List<NameValuePair> args)
Parameters:
url -
args - - args formatted in a List of NameValuePairs.
Returns:
- returns null if something went wrong. Otherwise the HTTP Response.