public class WebMvcStompEndpointRegistry extends Object implements StompEndpointRegistry
SimpleUrlHandlerMapping 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(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, WebSocketTransportRegistration transportRegistration, UserSessionRegistry userSessionRegistry, TaskScheduler defaultSockJsTaskScheduler)
public StompWebSocketEndpointRegistration addEndpoint(String... paths)
StompEndpointRegistryaddEndpoint in interface StompEndpointRegistrypublic 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.