public static enum HttpConfiguration.Protocol extends java.lang.Enum<HttpConfiguration.Protocol>
vAPI JSON-RPC is a JSON-RPC based protocol supported by vAPI clients and servers.
Enum Constant and Description |
---|
VAPI_JSON_RPC_1_0
vAPI JSON-RPC 1.0 (over HTTP) protocol.
|
VAPI_JSON_RPC_1_1
vAPI JSON-RPC 1.1 (over HTTP) protocol.
|
Modifier and Type | Method and Description |
---|---|
static HttpConfiguration.Protocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpConfiguration.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpConfiguration.Protocol VAPI_JSON_RPC_1_0
This is the default and recommended version in use. In this protocol, all the information sent by the client is encapsulated in the JSON message sent as HTTP request payload.
public static final HttpConfiguration.Protocol VAPI_JSON_RPC_1_1
This version is enhancement over 1.0, where target service and operation, authentication and other information is transported in HTTP headers. This benefits intermediaries and proxies for making authentication or routing decisions based on the HTTP headers only, and without need to parse the JSON payload.
vAPI servers which support vAPI JSON-RPC 1.1 are compatible with and fully support 1.0 clients.
Even 1.0 server can handle 1.1 clients, but any changes made by intermediaries to the HTTP header values will not be visible for the old 1.0 servers.
public static HttpConfiguration.Protocol[] values()
for (HttpConfiguration.Protocol c : HttpConfiguration.Protocol.values()) System.out.println(c);
public static HttpConfiguration.Protocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null