Package ru.kpekepsalt.ruvik.config
Class WebSocketConfiguration
- java.lang.Object
-
- org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
-
- org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
-
- ru.kpekepsalt.ruvik.config.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.AbstractSecurityWebSocketMessageBrokerConfigurerContains configuration for STOMP over Websocket
-
-
Constructor Summary
Constructors Constructor Description WebSocketConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)booleanconfigureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters)voidregisterStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)protected booleansameOriginDisabled()-
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
-
-
-
-
Method Detail
-
configureMessageBroker
public void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
- Specified by:
configureMessageBrokerin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer- Overrides:
configureMessageBrokerin classorg.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
-
registerStompEndpoints
public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
- Specified by:
registerStompEndpointsin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer- Overrides:
registerStompEndpointsin classorg.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
-
configureMessageConverters
public boolean configureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters)
- Specified by:
configureMessageConvertersin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer- Overrides:
configureMessageConvertersin classorg.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
-
sameOriginDisabled
protected boolean sameOriginDisabled()
- Overrides:
sameOriginDisabledin classorg.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
-
-