Package restapi.utils.websocket
Class WebSocketConfig
java.lang.Object
restapi.utils.websocket.WebSocketConfig
- All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig
extends Object
implements org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration) voidconfigureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config) (package private) org.springframework.web.cors.CorsConfigurationSourcevoidregisterStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
addArgumentResolvers, addReturnValueHandlers, configureClientOutboundChannel, configureMessageConverters, configureWebSocketTransport
-
Field Details
-
authChannelInterceptorAdapter
-
-
Constructor Details
-
WebSocketConfig
public WebSocketConfig()
-
-
Method Details
-
configureMessageBroker
public void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config) - Specified by:
configureMessageBrokerin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
-
registerStompEndpoints
public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) - Specified by:
registerStompEndpointsin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
-
configureClientInboundChannel
public void configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration) - Specified by:
configureClientInboundChannelin interfaceorg.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
-
corsFilter
- Throws:
Exception
-
corsConfigurationSource
@Bean org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()
-