public class WebMvcStompEndpointRegistry extends java.lang.Object implements StompEndpointRegistry
HandlerMapping
for use in Spring MVC.Constructor and Description |
---|
WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler,
WebSocketTransportRegistration transportRegistration,
UserSessionRegistry userSessionRegistry,
TaskScheduler defaultSockJsTaskScheduler) |
Modifier and Type | Method and Description |
---|---|
StompWebSocketEndpointRegistration |
addEndpoint(java.lang.String... paths)
Register a STOMP over WebSocket endpoint at the given mapping path.
|
AbstractHandlerMapping |
getHandlerMapping()
Return a handler mapping with the mapped ViewControllers.
|
protected int |
getOrder() |
protected UrlPathHelper |
getUrlPathHelper() |
protected void |
setApplicationContext(ApplicationContext applicationContext) |
WebMvcStompEndpointRegistry |
setErrorHandler(StompSubProtocolErrorHandler errorHandler)
Configure a handler for customizing or handling STOMP ERROR frames to clients.
|
void |
setOrder(int order)
Set the order for the resulting
HandlerMapping
relative to other handler mappings configured in Spring MVC. |
void |
setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to configure on the
HandlerMapping
used to map handshake requests. |
public WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, UserSessionRegistry userSessionRegistry, TaskScheduler defaultSockJsTaskScheduler)
public StompWebSocketEndpointRegistration addEndpoint(java.lang.String... paths)
StompEndpointRegistry
addEndpoint
in interface StompEndpointRegistry
public void setOrder(int order)
HandlerMapping
relative to other handler mappings configured in Spring MVC.
The default value is 1.
setOrder
in interface StompEndpointRegistry
protected int getOrder()
public void setUrlPathHelper(UrlPathHelper urlPathHelper)
HandlerMapping
used to map handshake requests.setUrlPathHelper
in interface StompEndpointRegistry
protected UrlPathHelper getUrlPathHelper()
public WebMvcStompEndpointRegistry setErrorHandler(StompSubProtocolErrorHandler errorHandler)
StompEndpointRegistry
setErrorHandler
in interface StompEndpointRegistry
errorHandler
- the error handlerprotected void setApplicationContext(ApplicationContext applicationContext)
public AbstractHandlerMapping getHandlerMapping()