public class CloverNVWebSocketClient
extends java.lang.Object
implements com.neovisionaries.ws.client.WebSocketListener
Constructor and Description |
---|
CloverNVWebSocketClient(java.net.URI endpoint,
CloverNVWebSocketClientListener listener,
java.security.KeyStore trustStore) |
Modifier and Type | Method and Description |
---|---|
void |
clearListener() |
void |
close() |
void |
connect() |
void |
disconnect() |
void |
disconnectMissedPong() |
void |
handleCallbackError(com.neovisionaries.ws.client.WebSocket websocket,
java.lang.Throwable cause) |
boolean |
isClosed() |
boolean |
isClosing() |
boolean |
isConnecting() |
boolean |
isOpen() |
void |
onBinaryFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onBinaryMessage(com.neovisionaries.ws.client.WebSocket websocket,
byte[] binary) |
void |
onCloseFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onConnected(com.neovisionaries.ws.client.WebSocket websocket,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) |
void |
onConnectError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause) |
void |
onContinuationFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onDisconnected(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame serverCloseFrame,
com.neovisionaries.ws.client.WebSocketFrame clientCloseFrame,
boolean closedByServer) |
void |
onError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause) |
void |
onFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onFrameError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onFrameSent(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onFrameUnsent(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onMessageDecompressionError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause,
byte[] compressed) |
void |
onMessageError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause,
java.util.List<com.neovisionaries.ws.client.WebSocketFrame> frames) |
void |
onPingFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onPongFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onSendError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onSendingFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onSendingHandshake(com.neovisionaries.ws.client.WebSocket websocket,
java.lang.String requestLine,
java.util.List<java.lang.String[]> headers) |
void |
onStateChanged(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketState newState) |
void |
onTextFrame(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketFrame frame) |
void |
onTextMessage(com.neovisionaries.ws.client.WebSocket websocket,
java.lang.String text) |
void |
onTextMessageError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause,
byte[] data) |
void |
onUnexpectedError(com.neovisionaries.ws.client.WebSocket websocket,
com.neovisionaries.ws.client.WebSocketException cause) |
void |
send(java.lang.String message) |
void |
sendPing() |
void |
setNotifyClose(boolean b) |
boolean |
shouldNotifyClose() |
public CloverNVWebSocketClient(java.net.URI endpoint, CloverNVWebSocketClientListener listener, java.security.KeyStore trustStore)
public void connect()
public void close()
public boolean isConnecting()
public boolean isOpen()
public boolean isClosing()
public boolean isClosed()
public void onTextMessage(com.neovisionaries.ws.client.WebSocket websocket, java.lang.String text) throws java.lang.Exception
onTextMessage
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onBinaryMessage(com.neovisionaries.ws.client.WebSocket websocket, byte[] binary) throws java.lang.Exception
onBinaryMessage
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onSendingFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onSendingFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onFrameSent(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onFrameSent
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onFrameUnsent(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onFrameUnsent
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onConnected(com.neovisionaries.ws.client.WebSocket websocket, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) throws java.lang.Exception
onConnected
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onConnectError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause) throws java.lang.Exception
onConnectError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onDisconnected(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame serverCloseFrame, com.neovisionaries.ws.client.WebSocketFrame clientCloseFrame, boolean closedByServer) throws java.lang.Exception
onDisconnected
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onContinuationFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onContinuationFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onTextFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onTextFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onBinaryFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onBinaryFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onCloseFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onCloseFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause) throws java.lang.Exception
onError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onPingFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onPingFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onPongFrame(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onPongFrame
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onStateChanged(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketState newState) throws java.lang.Exception
onStateChanged
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void handleCallbackError(com.neovisionaries.ws.client.WebSocket websocket, java.lang.Throwable cause) throws java.lang.Exception
handleCallbackError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onSendingHandshake(com.neovisionaries.ws.client.WebSocket websocket, java.lang.String requestLine, java.util.List<java.lang.String[]> headers) throws java.lang.Exception
onSendingHandshake
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onFrameError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onFrameError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onMessageError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause, java.util.List<com.neovisionaries.ws.client.WebSocketFrame> frames) throws java.lang.Exception
onMessageError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onMessageDecompressionError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause, byte[] compressed) throws java.lang.Exception
onMessageDecompressionError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onTextMessageError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause, byte[] data) throws java.lang.Exception
onTextMessageError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onSendError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause, com.neovisionaries.ws.client.WebSocketFrame frame) throws java.lang.Exception
onSendError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void onUnexpectedError(com.neovisionaries.ws.client.WebSocket websocket, com.neovisionaries.ws.client.WebSocketException cause) throws java.lang.Exception
onUnexpectedError
in interface com.neovisionaries.ws.client.WebSocketListener
java.lang.Exception
public void send(java.lang.String message)
public void sendPing()
public void disconnect()
public void disconnectMissedPong()
public void clearListener()
public void setNotifyClose(boolean b)
public boolean shouldNotifyClose()