public class JsonProtocolConnectionFactory extends java.lang.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 |
---|---|
protected com.vmware.vapi.internal.protocol.client.rpc.CorrelatingClient |
createHttpTransport(java.lang.String uri,
ClientConfiguration clientConfig,
HttpConfiguration httpConfig)
Factory method which creates the
CorrelatingClient to use
as transport for the ProtocolConnection s created by this
factory. |
ProtocolConnection |
getConnection(java.lang.String type,
java.lang.String args,
java.security.KeyStore trustStore) |
ProtocolConnection |
getHttpConnection(java.lang.String uri,
ClientConfiguration clientConfig,
HttpConfiguration httpConfig)
Creates an vAPI client that uses HTTP connection.
|
ProtocolConnection |
getInsecureConnection(java.lang.String type,
java.lang.String args) |
public ProtocolConnection getConnection(java.lang.String type, java.lang.String args, java.security.KeyStore trustStore)
getConnection
in interface ProtocolConnectionFactory
public ProtocolConnection getHttpConnection(java.lang.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(java.lang.String type, java.lang.String args)
getInsecureConnection
in interface ProtocolConnectionFactory
protected com.vmware.vapi.internal.protocol.client.rpc.CorrelatingClient createHttpTransport(java.lang.String uri, ClientConfiguration clientConfig, HttpConfiguration httpConfig)
CorrelatingClient
to use
as transport for the ProtocolConnection
s created by this
factory.