org.starhope.vergil.net
Class AppianJSONSocketTransport

java.lang.Object
  extended by org.starhope.vergil.net.AppianJSONSocketTransport
All Implemented Interfaces:
AppianJSONTransport

public class AppianJSONSocketTransport
extends Object
implements AppianJSONTransport

WRITEME: Document this type.

Author:
brpocock@star-hope.org

Field Summary
protected  String hostname
          the server hostname
protected  int port
          the server port
 
Constructor Summary
AppianJSONSocketTransport()
           
 
Method Summary
 void setServerURI(String uri)
          WRITEME
 List<org.json.JSONObject> transact(org.json.JSONObject toSend)
          Send a JSON packet to the server and receive back the result set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostname

protected String hostname
the server hostname


port

protected int port
the server port

Constructor Detail

AppianJSONSocketTransport

public AppianJSONSocketTransport()
Method Detail

setServerURI

public void setServerURI(String uri)
WRITEME

Specified by:
setServerURI in interface AppianJSONTransport
Parameters:
uri - the server URI to be used.
See Also:
AppianJSONTransport.setServerURI(java.lang.String)

transact

public List<org.json.JSONObject> transact(org.json.JSONObject toSend)
Description copied from interface: AppianJSONTransport
Send a JSON packet to the server and receive back the result set.

Specified by:
transact in interface AppianJSONTransport
Parameters:
toSend - The JSON data (envelope and all) to be transmitted
Returns:
the list of result packets returned by the server
See Also:
AppianJSONTransport.transact(org.json.JSONObject)