Top Description Methods
org.springframework.web.socket.config.annotation

public Interface StompEndpointRegistry

Known Direct Implementers
org.springframework.web.socket.config.annotation.WebMvcStompEndpointRegistry
Imports
org.springframework.web.socket.messaging.StompSubProtocolErrorHandler, org.springframework.web.util.UrlPathHelper

A contract for registering STOMP over WebSocket endpoints.
Author
Rossen Stoyanchev
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public StompWebSocketEndpointRegistration
addEndpoint(String... paths)

Register a STOMP over WebSocket endpoint at the given mapping path.

public WebMvcStompEndpointRegistry
setErrorHandler(StompSubProtocolErrorHandler
the error handler
errorHandler
)

Configure a handler for customizing or handling STOMP ERROR frames to clients.

public void
setOrder(int order)

Set the order of the org.springframework.web.servlet.HandlerMapping used for STOMP endpoints relative to other Spring MVC handler mappings.

public WebMvcStompEndpointRegistry
setPreserveReceiveOrder(boolean preserveReceiveOrder)

Whether to handle client messages sequentially in the order in which they were received.

public void
setUrlPathHelper(UrlPathHelper urlPathHelper)

Configure a customized UrlPathHelper for the STOMP endpoint HandlerMapping.

Method Detail

addEndpointback to summary
public StompWebSocketEndpointRegistration addEndpoint(String... paths)

Register a STOMP over WebSocket endpoint at the given mapping path.

setErrorHandlerback to summary
public WebMvcStompEndpointRegistry setErrorHandler(StompSubProtocolErrorHandler errorHandler)

Configure a handler for customizing or handling STOMP ERROR frames to clients.

Parameters
errorHandler:StompSubProtocolErrorHandler

the error handler

Since
4.2
setOrderback to summary
public void setOrder(int order)

Set the order of the org.springframework.web.servlet.HandlerMapping used for STOMP endpoints relative to other Spring MVC handler mappings.

By default this is set to 1.

setPreserveReceiveOrderback to summary
public WebMvcStompEndpointRegistry setPreserveReceiveOrder(boolean preserveReceiveOrder)

Whether to handle client messages sequentially in the order in which they were received.

By default messages sent to the "clientInboundChannel" may be handled in parallel and not in the same order as they were received because the channel is backed by a ThreadPoolExecutor that in turn does not guarantee processing in order.

When this flag is set to true messages within the same session will be sent to the "clientInboundChannel" one at a time in order to preserve the order in which they were received.

Since
6.1
setUrlPathHelperback to summary
public void setUrlPathHelper(UrlPathHelper urlPathHelper)

Configure a customized UrlPathHelper for the STOMP endpoint HandlerMapping.