public class JsonProtocolConnectionFactory extends Object implements ProtocolConnectionFactory
ProtocolConnection
instances which uses JSON for
messaging protocol.Modifier and Type | Class and Description |
---|---|
static class |
JsonProtocolConnectionFactory.Protocol |
Constructor and Description |
---|
JsonProtocolConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
ProtocolConnection |
getConnection(String type,
String args,
KeyStore trustStore) |
ProtocolConnection |
getHttpConnection(String uri,
ClientConfiguration clientConfig,
HttpConfiguration httpConfig)
Creates an vAPI client that uses HTTP connection.
|
ProtocolConnection |
getInsecureConnection(String type,
String args) |
public ProtocolConnection getConnection(String type, String args, KeyStore trustStore)
getConnection
in interface ProtocolConnectionFactory
public ProtocolConnection getHttpConnection(String uri, ClientConfiguration clientConfig, HttpConfiguration httpConfig)
ProtocolConnectionFactory
getHttpConnection
in interface ProtocolConnectionFactory
uri
- URI representing the server to connect. Should be of the form
http(s)://[IP_address]:[port]/[Service_endpoint]. Can
not be null.clientConfig
- the client configuration. can be null.httpConfig
- the transport configuration. can be null.public ProtocolConnection getInsecureConnection(String type, String args)
getInsecureConnection
in interface ProtocolConnectionFactory
Copyright © 2015. All Rights Reserved.