Class WebSocketServerHandler

java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.TextWebSocketHandler
com.mikuac.shiro.adapter.WebSocketServerHandler
All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler

public class WebSocketServerHandler extends org.springframework.web.socket.handler.TextWebSocketHandler
Created on 2021/7/16.
  • 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