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() |
UrlPathHelper |
getUrlPathHelper() |
protected void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setOrder(int order)
Set the order for the resulting
SimpleUrlHandlerMapping relative to
other handler mappings configured in Spring MVC. |
void |
setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to configure on the
SimpleUrlHandlerMapping
used to map handshake requests. |
public WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, UserSessionRegistry userSessionRegistry, TaskScheduler defaultSockJsTaskScheduler)
protected void setApplicationContext(ApplicationContext applicationContext)
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 void setUrlPathHelper(UrlPathHelper urlPathHelper)
SimpleUrlHandlerMapping
used to map handshake requests.public UrlPathHelper getUrlPathHelper()
public AbstractHandlerMapping getHandlerMapping()
null
in case of no registrations.