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.AbstractSecurityWebSocketMessageBrokerConfigurer
Contains configuration for STOMP over Websocket
-
-
Constructor Summary
Constructors Constructor Description WebSocketConfiguration()
-
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
-
-
-
-
Method Detail
-
configureMessageBroker
public void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
- Specified by:
configureMessageBroker
in interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
- Overrides:
configureMessageBroker
in classorg.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
-
registerStompEndpoints
public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
- Specified by:
registerStompEndpoints
in interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
- Overrides:
registerStompEndpoints
in classorg.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
-
configureMessageConverters
public boolean configureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters)
- Specified by:
configureMessageConverters
in interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
- Overrides:
configureMessageConverters
in classorg.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
-
sameOriginDisabled
protected boolean sameOriginDisabled()
- Overrides:
sameOriginDisabled
in classorg.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
-
-