Class SocketHandler

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

    @Component
    public class SocketHandler
    extends org.springframework.web.socket.handler.TextWebSocketHandler
    • Constructor Summary

      Constructors 
      Constructor Description
      SocketHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterConnectionClosed​(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus status)  
      void afterConnectionEstablished​(org.springframework.web.socket.WebSocketSession session)  
      • Methods inherited from class org.springframework.web.socket.handler.TextWebSocketHandler

        handleBinaryMessage
      • Methods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler

        handleMessage, handlePongMessage, handleTextMessage, handleTransportError, supportsPartialMessages
      • Methods inherited from class java.lang.Object

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

      • SocketHandler

        public SocketHandler()
    • Method Detail

      • afterConnectionEstablished

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

        public void afterConnectionClosed​(org.springframework.web.socket.WebSocketSession session,
                                          org.springframework.web.socket.CloseStatus status)
        Specified by:
        afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandler
        Overrides:
        afterConnectionClosed in class org.springframework.web.socket.handler.AbstractWebSocketHandler