Constants
The Java API uses two sets of constants. The first set is for the Server component, described in the table below.
Constant Name |
Description |
Example |
---|---|---|
Server.HOST |
String for server host name. Default is "localhost". |
65.89.200.89 |
Server.PORT |
String for server port. Default is "8080". |
10119 |
Server.ACCOUNT_ID |
String for server account ID. Default is null. |
user1 |
Server.ACCOUNT_PASSWORD |
String for server account password. Default is null. |
user1 |
Server.CONNECTION_TIMEOUT |
String for server connection timeout, in millisecond. Default is "10000". |
50000 |
Server.CONNECTION_TYPE |
String for server connection type. Currently only supports HTTP, HTTPS, or SOCKET. Default is "HTTP". |
HTTP |
Server.PROXY_HOST |
String for proxy server host name. Default is null. |
192.168.1.77 |
Server.PROXY_PORT |
String for proxy server port. Default is null. |
8080 |
Server.PROXY_USER |
String for proxy server account ID. Default is null. |
user1 |
Server.PROXY_PASSWORD |
String for proxy server account password. Default is null. |
user1 |
Server.INPUT_CLEANUP | Boolean value to indicate if the special characters in the input data must be
stripped. Default is false. Note: If this attribute is set to false
and the input data includes special characters, an exception
occurs.
Important: Set this to true only if
you are sure about the presence of special characters in the
input data. Else, enabling this attribute impacts the
performance negatively.
|
true |
The second set of constants is for the Message component.
Constant Name |
Description/Default |
Example |
---|---|---|
Message.CONTEXT_ACCOUNT_ID |
String for message context account ID. |
user1 |
Message.CONTEXT_ACCOUNT_PASSWORD |
String for message context account password. |
user1 |
Message.CONTEXT_SERVICE_NAME |
String for message context service name. |
echoservice |
Message.CONTEXT_SPECTRUM_DISPLAY_VERSION | String for message context Spectrum display version | 12.1 |
Message.CONTEXT_SPECTRUM_SERVER_VERSION | String for message context Spectrum server version | 12.1 |