Class WebSocketReader.WebSocketClientWrapper

  • All Implemented Interfaces:
    java.lang.Runnable, org.java_websocket.WebSocket, org.java_websocket.WebSocketListener
    Enclosing class:
    WebSocketReader

    protected class WebSocketReader.WebSocketClientWrapper
    extends org.java_websocket.client.WebSocketClient
    A wrapper class so that this processor can be used as an instance of WebSocketClient
    • Field Summary

      • Fields inherited from class org.java_websocket.client.WebSocketClient

        uri
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onClose​(int arg0, java.lang.String arg1, boolean arg2)  
      void onError​(java.lang.Exception arg0)  
      void onMessage​(java.lang.String arg0)  
      void onOpen​(org.java_websocket.handshake.ServerHandshake arg0)  
      • Methods inherited from class org.java_websocket.client.WebSocketClient

        addHeader, clearHeaders, close, close, close, closeBlocking, closeConnection, connect, connectBlocking, connectBlocking, getAttachment, getConnection, getConnections, getDraft, getLocalSocketAddress, getLocalSocketAddress, getProtocol, getReadyState, getRemoteSocketAddress, getRemoteSocketAddress, getResourceDescriptor, getSocket, getSSLSession, getURI, hasBufferedData, hasSSLSupport, isClosed, isClosing, isFlushAndClose, isOpen, onCloseInitiated, onClosing, onMessage, onSetSSLParameters, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketOpen, onWriteDemand, reconnect, reconnectBlocking, removeHeader, run, send, send, send, sendFragmentedFrame, sendFrame, sendFrame, sendPing, setAttachment, setDnsResolver, setProxy, setSocket, setSocketFactory
      • Methods inherited from class org.java_websocket.AbstractWebSocket

        getConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimer
      • Methods inherited from class org.java_websocket.WebSocketAdapter

        onPreparePing, onWebsocketHandshakeReceivedAsClient, onWebsocketHandshakeReceivedAsServer, onWebsocketHandshakeSentAsClient, onWebsocketPing, onWebsocketPong
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSocketClientWrapper

        public WebSocketClientWrapper​(java.net.URI serverURI)
    • Method Detail

      • onClose

        public void onClose​(int arg0,
                            java.lang.String arg1,
                            boolean arg2)
        Specified by:
        onClose in class org.java_websocket.client.WebSocketClient
      • onError

        public void onError​(java.lang.Exception arg0)
        Specified by:
        onError in class org.java_websocket.client.WebSocketClient
      • onMessage

        public void onMessage​(java.lang.String arg0)
        Specified by:
        onMessage in class org.java_websocket.client.WebSocketClient
      • onOpen

        public void onOpen​(org.java_websocket.handshake.ServerHandshake arg0)
        Specified by:
        onOpen in class org.java_websocket.client.WebSocketClient