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
FieldsModifier and TypeFieldDescriptionprotected static final Set<org.springframework.web.socket.WebSocketSession>접속 세션 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConnectionClosed(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus status) voidafterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) protected voidhandleTextMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.TextMessage message) Methods inherited from class org.springframework.web.socket.handler.TextWebSocketHandler
handleBinaryMessageMethods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler
handleMessage, handlePongMessage, handleTransportError, supportsPartialMessages
-
Field Details
-
CONNECTION_SESSIONS
접속 세션
-
-
Constructor Details
-
UstraTextWebSocketHandler
public UstraTextWebSocketHandler()
-
-
Method Details
-
afterConnectionEstablished
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) throws Exception - Specified by:
afterConnectionEstablishedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionEstablishedin classorg.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:
afterConnectionClosedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionClosedin classorg.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:
handleTextMessagein classorg.springframework.web.socket.handler.AbstractWebSocketHandler- Throws:
Exception
-