org.starhope.vergil.net
Interface AppianJSONTransport

All Known Implementing Classes:
AppianJSONSocketTransport

public interface AppianJSONTransport

Author:
brpocock@star-hope.org

Method Summary
 void setServerURI(String uri)
          Set the URI for the server to be used.
 List<org.json.JSONObject> transact(org.json.JSONObject toSend)
          Send a JSON packet to the server and receive back the result set.
 

Method Detail

transact

List<org.json.JSONObject> transact(org.json.JSONObject toSend)
Send a JSON packet to the server and receive back the result set.

Parameters:
toSend - The JSON data (envelope and all) to be transmitted
Returns:
the list of result packets returned by the server

setServerURI

void setServerURI(String uri)
Set the URI for the server to be used.

Parameters:
uri - the server URI to be used.