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

    Constructors
    Constructor
    Description
    WebSocketClientHandler(EventHandler eventHandler, BotFactory botFactory, ActionHandler actionHandler, ShiroAsyncTask shiroAsyncTask, BotContainer botContainer, CoreEvent coreEvent, WebSocketProperties wsProp, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor shiroTaskExecutor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterConnectionClosed(@NonNull org.springframework.web.socket.WebSocketSession session, @NonNull org.springframework.web.socket.CloseStatus status)
     
    void
    afterConnectionEstablished(@NonNull org.springframework.web.socket.WebSocketSession session)
     
    protected void
    handleTextMessage(@NonNull org.springframework.web.socket.WebSocketSession session, @NonNull 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
  • Constructor Details

  • Method Details

    • afterConnectionEstablished

      public void afterConnectionEstablished(@NonNull @NonNull org.springframework.web.socket.WebSocketSession session)
      Specified by:
      afterConnectionEstablished in interface org.springframework.web.socket.WebSocketHandler
      Overrides:
      afterConnectionEstablished in class org.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:
      afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandler
      Overrides:
      afterConnectionClosed in class org.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:
      handleTextMessage in class org.springframework.web.socket.handler.AbstractWebSocketHandler