Class WebSocketEndPoint

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

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

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onClose​(jakarta.websocket.Session wsSession, jakarta.websocket.CloseReason closeReason)  
      void onError​(jakarta.websocket.Session wsSession, java.lang.Throwable failure)  
      void onMessage​(java.lang.String data)  
      void onOpen​(jakarta.websocket.Session wsSession, jakarta.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​(jakarta.websocket.Session wsSession,
                           jakarta.websocket.EndpointConfig config)
        Specified by:
        onOpen in class jakarta.websocket.Endpoint
      • onMessage

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

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

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

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