public class ServletWebSocketHandlerRegistry extends Object implements WebSocketHandlerRegistry
WebSocketHandlerRegistry
that maps WebSocketHandler
s to URLs for use
in a Servlet container.Constructor and Description |
---|
ServletWebSocketHandlerRegistry(ThreadPoolTaskScheduler sockJsTaskScheduler) |
Modifier and Type | Method and Description |
---|---|
WebSocketHandlerRegistration |
addHandler(WebSocketHandler webSocketHandler,
String... paths)
Configure a WebSocketHandler at the specified URL paths.
|
AbstractHandlerMapping |
getHandlerMapping()
Return a
HandlerMapping with mapped HttpRequestHandler s. |
public ServletWebSocketHandlerRegistry(ThreadPoolTaskScheduler sockJsTaskScheduler)
public WebSocketHandlerRegistration addHandler(WebSocketHandler webSocketHandler, String... paths)
WebSocketHandlerRegistry
addHandler
in interface WebSocketHandlerRegistry
public AbstractHandlerMapping getHandlerMapping()
HandlerMapping
with mapped HttpRequestHandler
s.