org.springframework.web.servlet.HandlerMapping for use in Spring MVC.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final List | |
| private final TaskScheduler | |
| private final StompSubProtocolHandler | |
| private final SubProtocolWebSocketHandler | |
| private UrlPathHelper | |
| private final WebSocketHandler |
| Access | Constructor and Description |
|---|---|
| public | WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, TaskScheduler defaultSockJsTaskScheduler)
|
| Modifier and Type | Method and Description |
|---|---|
| public StompWebSocketEndpointRegistration | addEndpoint(String... paths)
Implements org. Register a STOMP over WebSocket endpoint at the given mapping path. |
| public AbstractHandlerMapping | |
| protected int | |
| protected UrlPathHelper | |
| protected boolean | |
| protected void | |
| public WebMvcStompEndpointRegistry | setErrorHandler(StompSubProtocolErrorHandler
the error handler errorHandler)Implements org. Configure a handler for customizing or handling STOMP ERROR frames to clients. |
| public void | setOrder(int order)
Implements org. Set the order for the resulting
|
| public WebMvcStompEndpointRegistry | setPreserveReceiveOrder(boolean preserveReceiveOrder)
Implements org. Whether to handle client messages sequentially in the order in which they were received. |
| public void | setUrlPathHelper(UrlPathHelper urlPathHelper)
Implements org. Set the UrlPathHelper to configure on the |
| private static SubProtocolWebSocketHandler |
| order | back to summary |
|---|---|
| private int order | |
| registrations | back to summary |
|---|---|
| private final List<WebMvcStompWebSocketEndpointRegistration> registrations | |
| sockJsScheduler | back to summary |
|---|---|
| private final TaskScheduler sockJsScheduler | |
| stompHandler | back to summary |
|---|---|
| private final StompSubProtocolHandler stompHandler | |
| subProtocolWebSocketHandler | back to summary |
|---|---|
| private final SubProtocolWebSocketHandler subProtocolWebSocketHandler | |
| urlPathHelper | back to summary |
|---|---|
| private UrlPathHelper urlPathHelper
| |
| webSocketHandler | back to summary |
|---|---|
| private final WebSocketHandler webSocketHandler | |
| WebMvcStompEndpointRegistry | back to summary |
|---|---|
| public WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, TaskScheduler defaultSockJsTaskScheduler) | |
| addEndpoint | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration addEndpoint(String... paths) Implements org. Doc from org. Register a STOMP over WebSocket endpoint at the given mapping path.
| |
| getHandlerMapping | back to summary |
|---|---|
| public AbstractHandlerMapping getHandlerMapping() Return a handler mapping with the mapped ViewControllers. | |
| getOrder | back to summary |
|---|---|
| protected int getOrder() | |
| getUrlPathHelper | back to summary |
|---|---|
protected UrlPathHelper getUrlPathHelper()
| |
| isPreserveReceiveOrder | back to summary |
|---|---|
| protected boolean isPreserveReceiveOrder() | |
| setApplicationContext | back to summary |
|---|---|
| protected void setApplicationContext(ApplicationContext applicationContext) | |
| setErrorHandler | back to summary |
|---|---|
| public WebMvcStompEndpointRegistry setErrorHandler(StompSubProtocolErrorHandler errorHandler) Implements org. Doc from org. Configure a handler for customizing or handling STOMP ERROR frames to clients.
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Implements org. Set the order for the resulting
The default value is 1.
| |
| setPreserveReceiveOrder | back to summary |
|---|---|
| public WebMvcStompEndpointRegistry setPreserveReceiveOrder(boolean preserveReceiveOrder) Implements org. Doc from org. Whether to handle client messages sequentially in the order in which they were received. By default messages sent to the When this flag is set to | |
| setUrlPathHelper | back to summary |
|---|---|
| public void setUrlPathHelper(UrlPathHelper urlPathHelper) Implements org. Set the UrlPathHelper to configure on the
| |
| unwrapSubProtocolWebSocketHandler | back to summary |
|---|---|
| private static SubProtocolWebSocketHandler unwrapSubProtocolWebSocketHandler(WebSocketHandler handler) | |