Package com.clover.remote.client
Class WebSocketCloverDeviceConfiguration
java.lang.Object
com.clover.remote.client.WebSocketCloverDeviceConfiguration
- All Implemented Interfaces:
CloverDeviceConfiguration,PairingDeviceConfiguration,Serializable
public abstract class WebSocketCloverDeviceConfiguration
extends Object
implements PairingDeviceConfiguration, CloverDeviceConfiguration, Serializable
Default configuration to communicate with the Mini via WebSockets to the LAN Pay Display
- See Also:
-
Field Summary
Fields inherited from interface com.clover.remote.client.CloverDeviceConfiguration
REMOTE_SDK -
Constructor Summary
ConstructorsConstructorDescriptionWebSocketCloverDeviceConfiguration(URI endpoint, String applicationId, KeyStore trustStore) ConstructorWebSocketCloverDeviceConfiguration(URI endpoint, String applicationId, KeyStore trustStore, String posName, String serialNumber, String authToken) ConstructorWebSocketCloverDeviceConfiguration(URI endpoint, String applicationId, KeyStore trustStore, String posName, String serialNumber, String authToken, long pongTimeout, long pingFrequency, long reconnectDelay, long reportConnectionProblemAfter) Constructor -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the application ID broadcast on all messages sent to the remote deviceRetrieve the class name of the clover device instantiated during theCloverConnector.initializeConnection()call.Retrieve the configuration specified transport (e.g.intRetrieve the max message charactersRetrieve the package name broadcast on all messages sent to the remote devicegetName()Retrieve the device configuration nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.clover.remote.client.transport.PairingDeviceConfiguration
onPairingCode, onPairingSuccess
-
Constructor Details
-
WebSocketCloverDeviceConfiguration
public WebSocketCloverDeviceConfiguration(URI endpoint, String applicationId, KeyStore trustStore, String posName, String serialNumber, String authToken) Constructor- Parameters:
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 previousPairingDeviceConfiguration.onPairingSuccess(String)call Please seeWebSocketUtilsfor help with . Please seeWebSocketUtils.createSecureURI(String, String)orWebSocketUtils.createNonsecureURI(String, String)for help with .
-
WebSocketCloverDeviceConfiguration
Constructor- Parameters:
endpoint- The endpoint for the Clover Device.applicationId- Your application's Remote Application IDtrustStore- A KeyStore containing the device certificates. Please seeWebSocketUtilsfor help with . Please seeWebSocketUtils.createSecureURI(String, String)orWebSocketUtils.createNonsecureURI(String, String)for help with .
-
WebSocketCloverDeviceConfiguration
public WebSocketCloverDeviceConfiguration(URI endpoint, String applicationId, KeyStore trustStore, String posName, String serialNumber, String authToken, long pongTimeout, long pingFrequency, long reconnectDelay, long reportConnectionProblemAfter) Constructor- Parameters:
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 previousPairingDeviceConfiguration.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 seeWebSocketUtilsfor help with . Please seeWebSocketUtils.createSecureURI(String, String)orWebSocketUtils.createNonsecureURI(String, String)for help with .
-
-
Method Details
-
getApplicationId
Description copied from interface:CloverDeviceConfigurationRetrieve the application ID broadcast on all messages sent to the remote device- Specified by:
getApplicationIdin interfaceCloverDeviceConfiguration- Returns:
- application ID
-
getCloverDeviceTypeName
Description copied from interface:CloverDeviceConfigurationRetrieve the class name of the clover device instantiated during theCloverConnector.initializeConnection()call.- Specified by:
getCloverDeviceTypeNamein interfaceCloverDeviceConfiguration- Returns:
- the canonical class name
-
getMessagePackageName
Description copied from interface:CloverDeviceConfigurationRetrieve the package name broadcast on all messages sent to the remote device- Specified by:
getMessagePackageNamein interfaceCloverDeviceConfiguration- Returns:
- package name
-
getName
Description copied from interface:CloverDeviceConfigurationRetrieve the device configuration name- Specified by:
getNamein interfaceCloverDeviceConfiguration- Returns:
- name
-
getMaxMessageCharacters
public int getMaxMessageCharacters()Description copied from interface:CloverDeviceConfigurationRetrieve the max message characters- Specified by:
getMaxMessageCharactersin interfaceCloverDeviceConfiguration- Returns:
- max numner characters
-
getCloverTransport
Description copied from interface:CloverDeviceConfigurationRetrieve the configuration specified transport (e.g. network, etc.) associated with this configuration. Note that the underlying connection for the transport is not made as a part of this call.- Specified by:
getCloverTransportin interfaceCloverDeviceConfiguration- Returns:
- disconnected transport
-