public abstract class WebSocketCloverDeviceConfiguration extends java.lang.Object implements PairingDeviceConfiguration, CloverDeviceConfiguration, java.io.Serializable
REMOTE_SDK| Constructor and Description |
|---|
WebSocketCloverDeviceConfiguration(java.net.URI endpoint,
java.lang.String applicationId,
java.security.KeyStore trustStore)
Constructor
|
WebSocketCloverDeviceConfiguration(java.net.URI endpoint,
java.lang.String applicationId,
java.security.KeyStore trustStore,
java.lang.String posName,
java.lang.String serialNumber,
java.lang.String authToken)
Constructor
|
WebSocketCloverDeviceConfiguration(java.net.URI endpoint,
java.lang.String applicationId,
java.security.KeyStore trustStore,
java.lang.String posName,
java.lang.String serialNumber,
java.lang.String authToken,
long pongTimeout,
long pingFrequency,
long reconnectDelay,
long reportConnectionProblemAfter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationId()
Retrieve the application ID broadcast on all messages sent to the remote device
|
java.lang.String |
getCloverDeviceTypeName()
Retrieve the class name of the clover device instantiated during the
CloverConnector.initializeConnection() call. |
CloverTransport |
getCloverTransport()
Retrieve the configuration specified transport (e.g.
|
int |
getMaxMessageCharacters()
Retrieve the max message characters
|
java.lang.String |
getMessagePackageName()
Retrieve the package name broadcast on all messages sent to the remote device
|
java.lang.String |
getName()
Retrieve the device configuration name
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPairingCode, onPairingSuccesspublic WebSocketCloverDeviceConfiguration(java.net.URI endpoint,
java.lang.String applicationId,
java.security.KeyStore trustStore,
java.lang.String posName,
java.lang.String serialNumber,
java.lang.String authToken)
endpoint - network endpoint of the device to connect toapplicationId - remote application IDtrustStore - certificate keystore used to support the secure websockets protocol (wss)posName - point of sale nameserialNumber - serial number of the POS terminal/device attaching to the clover deviceauthToken - cached authentication token provided from a previous PairingDeviceConfiguration.onPairingSuccess(String) call
Please see WebSocketUtils for help with .
Please see WebSocketUtils.createSecureURI(String, String)
or WebSocketUtils.createNonsecureURI(String, String) for help with .public WebSocketCloverDeviceConfiguration(java.net.URI endpoint,
java.lang.String applicationId,
java.security.KeyStore trustStore)
endpoint - The endpoint for the Clover Device.applicationId - Your application's Remote Application IDtrustStore - A KeyStore containing the device certificates.
Please see WebSocketUtils for help with .
Please see WebSocketUtils.createSecureURI(String, String)
or WebSocketUtils.createNonsecureURI(String, String) for help with .public WebSocketCloverDeviceConfiguration(java.net.URI endpoint,
java.lang.String applicationId,
java.security.KeyStore trustStore,
java.lang.String posName,
java.lang.String serialNumber,
java.lang.String authToken,
long pongTimeout,
long pingFrequency,
long reconnectDelay,
long reportConnectionProblemAfter)
endpoint - network endpoint of the device to connect toapplicationId - remote application IDtrustStore - certificate keystore used to support the secure websockets protocol (wss)posName - point of sale nameserialNumber - serial number of the POS terminal/device attaching to the clover deviceauthToken - cached authentication token provided from a previous PairingDeviceConfiguration.onPairingSuccess(String) callpongTimeout - amount of time, in milliseconds, before closing the connection, but still waitpingFrequency - amount of time, in milliseconds, between pingsreconnectDelay - amount of time, in milliseconds, to wait before attempting to reconnectreportConnectionProblemAfter - amount of time, in milliseconds, in which a disconnected client is reported if a pong hasn't come back,
before it is actually disconnected
Please see WebSocketUtils for help with .
Please see WebSocketUtils.createSecureURI(String, String)
or WebSocketUtils.createNonsecureURI(String, String) for help with .public java.lang.String getApplicationId()
CloverDeviceConfigurationgetApplicationId in interface CloverDeviceConfigurationpublic java.lang.String getCloverDeviceTypeName()
CloverDeviceConfigurationCloverConnector.initializeConnection() call.getCloverDeviceTypeName in interface CloverDeviceConfigurationpublic java.lang.String getMessagePackageName()
CloverDeviceConfigurationgetMessagePackageName in interface CloverDeviceConfigurationpublic java.lang.String getName()
CloverDeviceConfigurationgetName in interface CloverDeviceConfigurationpublic int getMaxMessageCharacters()
CloverDeviceConfigurationgetMaxMessageCharacters in interface CloverDeviceConfigurationpublic CloverTransport getCloverTransport()
CloverDeviceConfigurationgetCloverTransport in interface CloverDeviceConfiguration