public class WebMvcStompEndpointRegistry extends Object implements StompEndpointRegistry
SimpleUrlHandlerMapping
for use in Spring MVC.Constructor and Description |
---|
WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler,
UserSessionRegistry userSessionRegistry,
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; or
null in case of no registrations. |
int |
getOrder() |
void |
setOrder(int order)
Set the order for the resulting
SimpleUrlHandlerMapping relative to
other handler mappings configured in Spring MVC. |
public WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, UserSessionRegistry userSessionRegistry, TaskScheduler defaultSockJsTaskScheduler)
public StompWebSocketEndpointRegistration addEndpoint(String... paths)
StompEndpointRegistry
addEndpoint
in interface StompEndpointRegistry
public void setOrder(int order)
SimpleUrlHandlerMapping
relative to
other handler mappings configured in Spring MVC.
The default value is 1.
public int getOrder()
public AbstractHandlerMapping getHandlerMapping()
null
in case of no registrations.