Class ShiroAutoConfiguration

java.lang.Object
com.mikuac.shiro.boot.ShiroAutoConfiguration
All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketConfigurer, org.springframework.web.socket.server.HandshakeInterceptor

@Component @EnableAsync @EnableWebSocket @Import(Shiro.class) @ComponentScan("com.mikuac.shiro") public class ShiroAutoConfiguration extends Object implements org.springframework.web.socket.config.annotation.WebSocketConfigurer, org.springframework.web.socket.server.HandshakeInterceptor
Created on 2021/7/15.
  • Constructor Details

  • Method Details

    • registerWebSocketHandlers

      public void registerWebSocketHandlers(@Nonnull org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry registry)
      Specified by:
      registerWebSocketHandlers in interface org.springframework.web.socket.config.annotation.WebSocketConfigurer
    • beforeHandshake

      public boolean beforeHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, Map<String,Object> attributes) throws Exception
      Specified by:
      beforeHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor
      Throws:
      Exception
    • afterHandshake

      public void afterHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, @Nullable Exception exception)
      Specified by:
      afterHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor