Java Client Instantiation

From OpenIndivo Documentation Wiki

Jump to: navigation, search

Instantiating a client begins with creating a map of configuration values. These values are passed to the client constructor method.

Code Examples

Instantiate a Client

The SERVER_LOCATION value should reflect the URL where you deployed your Indivo Server.

Map map = new HashMap();
map.put(TalkClient.CERT_TRUST_KEY, TalkClient.ALL_CERTS_ACCEPTED);
map.put(TalkClient.SERVER_LOCATION, "https://path.to.server/indivo/IndivoServlet");

TalkClient client = new TalkClientImpl(map);
Personal tools