Typically used to customize the configuration provided via
@EnableWebSocketMessageBroker.
| Modifier and Type | Method and Description |
|---|---|
| public default void | addArgumentResolvers(List<HandlerMethodArgumentResolver>
the resolvers to register (initially an empty list) argumentResolvers)Add resolvers to support custom controller method argument types. |
| public default void | addReturnValueHandlers(List<HandlerMethodReturnValueHandler>
the handlers to register (initially an empty list) returnValueHandlers)Add handlers to support custom controller method return value types. |
| public default void | configureClientInboundChannel(ChannelRegistration registration)
Configure the |
| public default void | configureClientOutboundChannel(ChannelRegistration registration)
Configure the |
| public default void | |
| public default boolean | Returns: whether to also add default converter or notthe converters to configure (initially an empty list) messageConverters)Configure the message converters to use when extracting the payload of messages in annotated methods and when sending messages (e.g. through the "broker" SimpMessagingTemplate). |
| public default void | configureWebSocketTransport(WebSocketTransportRegistration registry)
Configure options related to the processing of messages received from and sent to WebSocket clients. |
| public default Integer | getPhase()
Return the The default implementation returns |
| public default void | registerStompEndpoints(StompEndpointRegistry registry)
Register STOMP endpoints mapping each to a specific URL and (optionally) enabling and configuring SockJS fallback options. |
| addArgumentResolvers | back to summary |
|---|---|
| public default void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) Add resolvers to support custom controller method argument types. This does not override the built-in support for resolving handler
method arguments. To customize the built-in support for argument
resolution, configure
| |
| addReturnValueHandlers | back to summary |
|---|---|
| public default void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) Add handlers to support custom controller method return value types. Using this option does not override the built-in support for handling
return values. To customize the built-in support for handling return
values, configure
| |
| configureClientInboundChannel | back to summary |
|---|---|
| public default void configureClientInboundChannel(ChannelRegistration registration) Configure the | |
| configureClientOutboundChannel | back to summary |
|---|---|
| public default void configureClientOutboundChannel(ChannelRegistration registration) Configure the | |
| configureMessageBroker | back to summary |
|---|---|
| public default void configureMessageBroker(MessageBrokerRegistry registry) Configure message broker options. | |
| configureMessageConverters | back to summary |
|---|---|
| public default boolean configureMessageConverters(List<MessageConverter> messageConverters) Configure the message converters to use when extracting the payload of messages in annotated methods and when sending messages (e.g. through the "broker" SimpMessagingTemplate). The provided list, initially empty, can be used to add message converters while the boolean return value is used to determine if default message should be added as well.
| |
| configureWebSocketTransport | back to summary |
|---|---|
| public default void configureWebSocketTransport(WebSocketTransportRegistration registry) Configure options related to the processing of messages received from and sent to WebSocket clients. | |
| getPhase | back to summary |
|---|---|
| public default Integer getPhase() Return the The default implementation returns It is recommended to use a phase value such as 0 in order to ensure that components start before the web server in Spring Boot application. In 6.2.0, the default used will change to 0.
| |
| registerStompEndpoints | back to summary |
|---|---|
| public default void registerStompEndpoints(StompEndpointRegistry registry) Register STOMP endpoints mapping each to a specific URL and (optionally) enabling and configuring SockJS fallback options. | |