public class CstaConfiguration
extends java.lang.Object
Constructor and Description |
---|
CstaConfiguration(java.lang.String OSVIP,
int port)
Basic structure to configure SDK properly.
|
CstaConfiguration(java.lang.String OSVIP,
int port,
java.lang.String keyStoreFileName,
java.lang.String keyStorePassword,
java.lang.String trustStoreFileName,
java.lang.String trustStorePassword)
Setup Configuration for TLS connection
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKeyStoreFileName() |
java.lang.String |
getKeyStorePassword() |
java.lang.String |
getListenerURL() |
int |
getLocalPort() |
int |
getMaxHttpConnections() |
java.lang.String |
getOSV_IP()
Get the IP address of the OpenScapeVoice CSTA Server.
|
java.lang.String |
getPath() |
int |
getPort()
Get the Port of the OpenScapeVoice CSTA Server.
|
CstaTransports |
getTransportType()
Get the TransportType that currently in use by SDK.
|
java.lang.String |
getTrustStoreFileName() |
java.lang.String |
getTrustStorePassword() |
boolean |
isKeepAlive()
The configuration is set to keep alive or not.
|
void |
setKeepAlive(boolean keepAlive)
Set the configuration to keep alive or not.
|
void |
setKeyStoreFileName(java.lang.String keyStoreFileName)
Set KeyStore file for TLS connection
|
void |
setKeyStorePassword(java.lang.String keyStorePassword)
Set KeyStore password, if there is any
|
void |
setListenerURL(java.lang.String listenerURL)
Sets the URL where the SDK will start listening for events
REQUIRED for the HTTP/SOAP connection with OSV
|
void |
setLocalPort(int localPort)
Sets the port to receive events from OSV.
|
void |
setMaxHttpConnections(int maxHttpConnections)
Sets the max number of simultaneous HTTP connections to OSV.
|
void |
setOSV_IP(java.lang.String OSVIP)
Set the IP address of the OpenScapeVoice CSTA Server.
|
void |
setPath(java.lang.String path) |
void |
setPort(int port)
Set the Port of the OpenScapeVoice CSTA Server.
|
void |
setTransportType(CstaTransports transportType)
Set TransportType to be used by SDK.
|
void |
setTrustStoreFileName(java.lang.String trustStoreFileName)
Set TrustStore File for TLS connection
|
void |
setTrustStorePassword(java.lang.String trustStorePassword)
Set TrustStore password, if there is any
|
public CstaConfiguration(java.lang.String OSVIP, int port)
In case of raw TCP, the OSVIP and port should be of OpenScapeVoice CSTA Server. Please refer to the manual of OpenScapeVoice Server on how to retrieve the IP address and port of CSTA Server.
Currently only raw TCP connection is supported.OSVIP
- the IP address of CSTA Server.port
- the Port of CSTA Server.public CstaConfiguration(java.lang.String OSVIP, int port, java.lang.String keyStoreFileName, java.lang.String keyStorePassword, java.lang.String trustStoreFileName, java.lang.String trustStorePassword)
OSVIP
- the IP address of CSTA Serverport
- the TLS Port of CSTA Server, usually is 1041keyStoreFileName
- keystore file pathkeyStorePassword
- KeyStore password, if there is anytrustStoreFileName
- truststore file pathtrustStorePassword
- TrustStore password, if there is anypublic java.lang.String getOSV_IP()
public void setOSV_IP(java.lang.String OSVIP)
OSVIP
- the IP of CSTA Server to be set.public int getPort()
public void setPort(int port)
port
- the port of CSTA Server to be set.public boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive
- to keep alive or not.public CstaTransports getTransportType()
public void setTransportType(CstaTransports transportType)
transportType
- the TransportType to set.public java.lang.String getListenerURL()
public void setListenerURL(java.lang.String listenerURL)
listenerURL
- public int getMaxHttpConnections()
public void setMaxHttpConnections(int maxHttpConnections)
maxHttpConnections
- public void setLocalPort(int localPort)
localPort
- public int getLocalPort()
public void setPath(java.lang.String path)
public java.lang.String getPath()
public java.lang.String getKeyStoreFileName()
public void setKeyStoreFileName(java.lang.String keyStoreFileName)
keyStoreFileName
- keystore file pathpublic java.lang.String getKeyStorePassword()
public void setKeyStorePassword(java.lang.String keyStorePassword)
keyStorePassword
- public java.lang.String getTrustStoreFileName()
public void setTrustStoreFileName(java.lang.String trustStoreFileName)
trustStoreFileName
- truststore file pathpublic java.lang.String getTrustStorePassword()
public void setTrustStorePassword(java.lang.String trustStorePassword)
trustStorePassword
-