public class WebMvcStompEndpointRegistry extends Object implements StompEndpointRegistry
HandlerMapping
for use in Spring MVC.Constructor and Description |
---|
WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler,
WebSocketTransportRegistration transportRegistration,
TaskScheduler defaultSockJsTaskScheduler) |
Modifier and Type | Method and Description |
---|---|
StompWebSocketEndpointRegistration |
addEndpoint(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, TaskScheduler defaultSockJsTaskScheduler)
public StompWebSocketEndpointRegistration addEndpoint(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(@Nullable UrlPathHelper urlPathHelper)
HandlerMapping
used to map handshake requests.setUrlPathHelper
in interface StompEndpointRegistry
@Nullable protected UrlPathHelper getUrlPathHelper()
public WebMvcStompEndpointRegistry setErrorHandler(StompSubProtocolErrorHandler errorHandler)
StompEndpointRegistry
setErrorHandler
in interface StompEndpointRegistry
errorHandler
- the error handlerprotected void setApplicationContext(ApplicationContext applicationContext)
public AbstractHandlerMapping getHandlerMapping()