Package com.mikuac.shiro.adapter
Class WebSocketClientHandler
java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.TextWebSocketHandler
com.mikuac.shiro.adapter.WebSocketClientHandler
- All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler
public class WebSocketClientHandler
extends org.springframework.web.socket.handler.TextWebSocketHandler
Created on 2021/7/16.
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketClientHandler(EventHandler eventHandler, BotFactory botFactory, ActionHandler actionHandler, ShiroAsyncTask shiroAsyncTask, BotContainer botContainer, CoreEvent coreEvent, WebSocketProperties wsProp, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor shiroTaskExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConnectionClosed(@NonNull org.springframework.web.socket.WebSocketSession session, @NonNull org.springframework.web.socket.CloseStatus status) voidafterConnectionEstablished(@NonNull org.springframework.web.socket.WebSocketSession session) protected voidhandleTextMessage(@NonNull org.springframework.web.socket.WebSocketSession session, @NonNull 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
-
Constructor Details
-
WebSocketClientHandler
public WebSocketClientHandler(EventHandler eventHandler, BotFactory botFactory, ActionHandler actionHandler, ShiroAsyncTask shiroAsyncTask, BotContainer botContainer, CoreEvent coreEvent, WebSocketProperties wsProp, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor shiroTaskExecutor)
-
-
Method Details
-
afterConnectionEstablished
public void afterConnectionEstablished(@NonNull @NonNull org.springframework.web.socket.WebSocketSession session) - Specified by:
afterConnectionEstablishedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionEstablishedin classorg.springframework.web.socket.handler.AbstractWebSocketHandler
-
afterConnectionClosed
public void afterConnectionClosed(@NonNull @NonNull org.springframework.web.socket.WebSocketSession session, @NonNull @NonNull org.springframework.web.socket.CloseStatus status) - Specified by:
afterConnectionClosedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionClosedin classorg.springframework.web.socket.handler.AbstractWebSocketHandler
-
handleTextMessage
protected void handleTextMessage(@NonNull @NonNull org.springframework.web.socket.WebSocketSession session, @NonNull @NonNull org.springframework.web.socket.TextMessage message) - Overrides:
handleTextMessagein classorg.springframework.web.socket.handler.AbstractWebSocketHandler
-