Class UstraTextWebSocketHandler

java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.TextWebSocketHandler
com.gsitm.ustra.web.socket.handlers.UstraTextWebSocketHandler
All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler

public abstract class UstraTextWebSocketHandler extends org.springframework.web.socket.handler.TextWebSocketHandler
텍스트 메시지 기반 WebSocket Handler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Set<org.springframework.web.socket.WebSocketSession>
    접속 세션
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     
    protected void
    handleTextMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.TextMessage message)
     

    Methods inherited from class org.springframework.web.socket.handler.TextWebSocketHandler

    handleBinaryMessage

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

    handleMessage, handlePongMessage, handleTransportError, supportsPartialMessages

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONNECTION_SESSIONS

      protected static final Set<org.springframework.web.socket.WebSocketSession> CONNECTION_SESSIONS
      접속 세션
  • Constructor Details

    • UstraTextWebSocketHandler

      public UstraTextWebSocketHandler()
  • Method Details

    • afterConnectionEstablished

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

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

      protected void handleTextMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.TextMessage message) throws Exception
      Overrides:
      handleTextMessage in class org.springframework.web.socket.handler.AbstractWebSocketHandler
      Throws:
      Exception