Class WebSocketConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer

    @Configuration
    @EnableWebSocketMessageBroker
    public class WebSocketConfiguration
    extends org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
    Contains configuration for STOMP over Websocket
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configureMessageBroker​(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)  
      boolean configureMessageConverters​(List<org.springframework.messaging.converter.MessageConverter> messageConverters)  
      void registerStompEndpoints​(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)  
      protected boolean sameOriginDisabled()  
      • Methods inherited from class org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer

        addArgumentResolvers, afterSingletonsInstantiated, configureClientInboundChannel, configureInbound, csrfChannelInterceptor, customizeClientInboundChannel, inboundChannelSecurity, inboundMessageSecurityMetadataSource, securityContextChannelInterceptor, setApplicationContext, setMessageExpessionHandler, setMessageExpressionHandler, setObjectPostProcessor
      • Methods inherited from class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer

        addReturnValueHandlers, configureClientOutboundChannel, configureWebSocketTransport
    • Constructor Detail

      • WebSocketConfiguration

        public WebSocketConfiguration()
    • Method Detail

      • configureMessageBroker

        public void configureMessageBroker​(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
        Specified by:
        configureMessageBroker in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
        Overrides:
        configureMessageBroker in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
      • registerStompEndpoints

        public void registerStompEndpoints​(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
        Specified by:
        registerStompEndpoints in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
        Overrides:
        registerStompEndpoints in class org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
      • configureMessageConverters

        public boolean configureMessageConverters​(List<org.springframework.messaging.converter.MessageConverter> messageConverters)
        Specified by:
        configureMessageConverters in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
        Overrides:
        configureMessageConverters in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
      • sameOriginDisabled

        protected boolean sameOriginDisabled()
        Overrides:
        sameOriginDisabled in class org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer