Class WebSocketEndPoint

  • All Implemented Interfaces:
    javax.websocket.MessageHandler, javax.websocket.MessageHandler.Whole<java.lang.String>
    Direct Known Subclasses:
    WebSocketTransport.EndPoint

    public class WebSocketEndPoint
    extends javax.websocket.Endpoint
    implements javax.websocket.MessageHandler.Whole<java.lang.String>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.websocket.MessageHandler

        javax.websocket.MessageHandler.Partial<T extends java.lang.Object>, javax.websocket.MessageHandler.Whole<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onClose​(javax.websocket.Session wsSession, javax.websocket.CloseReason closeReason)  
      void onError​(javax.websocket.Session wsSession, java.lang.Throwable failure)  
      void onMessage​(java.lang.String data)  
      void onOpen​(javax.websocket.Session wsSession, javax.websocket.EndpointConfig config)  
      java.lang.String toString()  
      protected void writeComplete​(AbstractWebSocketEndPoint.Context context, java.util.List<ServerMessage> messages)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • onOpen

        public void onOpen​(javax.websocket.Session wsSession,
                           javax.websocket.EndpointConfig config)
        Specified by:
        onOpen in class javax.websocket.Endpoint
      • onMessage

        public void onMessage​(java.lang.String data)
        Specified by:
        onMessage in interface javax.websocket.MessageHandler.Whole<java.lang.String>
      • onClose

        public void onClose​(javax.websocket.Session wsSession,
                            javax.websocket.CloseReason closeReason)
        Overrides:
        onClose in class javax.websocket.Endpoint
      • onError

        public void onError​(javax.websocket.Session wsSession,
                            java.lang.Throwable failure)
        Overrides:
        onError in class javax.websocket.Endpoint
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object