Class WebSocketEndPoint

  • All Implemented Interfaces:
    javax.websocket.MessageHandler, javax.websocket.MessageHandler.Whole<java.lang.String>

    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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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