接口 StompEndpointRegistry
- 所有已知实现类:
WebMvcStompEndpointRegistry
public interface StompEndpointRegistry
A contract for registering STOMP over WebSocket endpoints.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StompWebSocketEndpointRegistration
addEndpoint(String... paths)
Register a STOMP over WebSocket endpoint at the given mapping path.WebMvcStompEndpointRegistry
setErrorHandler(StompSubProtocolErrorHandler errorHandler)
Configure a handler for customizing or handling STOMP ERROR frames to clients.void
setOrder(int order)
Set the order of theHandlerMapping
used for STOMP endpoints relative to other Spring MVC handler mappings.void
setUrlPathHelper(UrlPathHelper urlPathHelper)
Configure a customizedUrlPathHelper
for the STOMP endpointHandlerMapping
.
方法详细资料
addEndpoint
StompWebSocketEndpointRegistration addEndpoint(String... paths)
Register a STOMP over WebSocket endpoint at the given mapping path.
setOrder
void setOrder(int order)
Set the order of theHandlerMapping
used for STOMP endpoints relative to other Spring MVC handler mappings.By default this is set to 1.
setUrlPathHelper
void setUrlPathHelper(UrlPathHelper urlPathHelper)
Configure a customizedUrlPathHelper
for the STOMP endpointHandlerMapping
.
setErrorHandler
WebMvcStompEndpointRegistry setErrorHandler(StompSubProtocolErrorHandler errorHandler)
Configure a handler for customizing or handling STOMP ERROR frames to clients.- 参数:
errorHandler
- the error handler- 从以下版本开始:
- 4.2