Class SubscriptionWebsocketHandler

  • All Implemented Interfaces:
    org.springframework.web.socket.WebSocketHandler

    public class SubscriptionWebsocketHandler
    extends org.springframework.web.socket.handler.TextWebSocketHandler
    implements org.springframework.web.socket.WebSocketHandler
    • Method Detail

      • afterConnectionClosed

        public void afterConnectionClosed​(org.springframework.web.socket.WebSocketSession theSession,
                                          org.springframework.web.socket.CloseStatus theStatus)
                                   throws Exception
        Specified by:
        afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandler
        Overrides:
        afterConnectionClosed in class org.springframework.web.socket.handler.AbstractWebSocketHandler
        Throws:
        Exception
      • afterConnectionEstablished

        public void afterConnectionEstablished​(org.springframework.web.socket.WebSocketSession theSession)
                                        throws Exception
        Specified by:
        afterConnectionEstablished in interface org.springframework.web.socket.WebSocketHandler
        Overrides:
        afterConnectionEstablished in class org.springframework.web.socket.handler.AbstractWebSocketHandler
        Throws:
        Exception
      • handleTextMessage

        protected void handleTextMessage​(org.springframework.web.socket.WebSocketSession theSession,
                                         org.springframework.web.socket.TextMessage theMessage)
                                  throws Exception
        Overrides:
        handleTextMessage in class org.springframework.web.socket.handler.AbstractWebSocketHandler
        Throws:
        Exception
      • handleTransportError

        public void handleTransportError​(org.springframework.web.socket.WebSocketSession theSession,
                                         Throwable theException)
                                  throws Exception
        Specified by:
        handleTransportError in interface org.springframework.web.socket.WebSocketHandler
        Overrides:
        handleTransportError in class org.springframework.web.socket.handler.AbstractWebSocketHandler
        Throws:
        Exception