open class WebSocketHandlerMapping : SimpleUrlHandlerMapping, SmartLifecycle
An extension of SimpleUrlHandlerMapping that is also a SmartLifecycle container and propagates start and stop calls to any handlers that implement Lifecycle. The handlers are typically expected to be WebSocketHttpRequestHandler or SockJsHttpRequestHandler.
Author
Rossen Stoyanchev
Since
4.2
WebSocketHandlerMapping()
An extension of SimpleUrlHandlerMapping that is also a SmartLifecycle container and propagates start and stop calls to any handlers that implement Lifecycle. The handlers are typically expected to be |
open fun getPhase(): Int |
|
open fun isAutoStartup(): Boolean |
|
open fun isRunning(): Boolean |
|
open fun start(): Unit |
|
open fun stop(): Unitopen fun stop(callback: Runnable): Unit |
open fun getUrlMap(): MutableMap<String, *>
Allow Map access to the URL path mappings, with the option to add or override specific entries. Useful for specifying entries directly, for example via "urlMap[myKey]". This is particularly useful for adding or overriding entries in child bean definitions. |
|
open fun initApplicationContext(): Unit
Calls the |
|
open fun setMappings(mappings: Properties): Unit
Map URL paths to handler bean names. This is the typical way of configuring this HandlerMapping. Supports direct URL matches and Ant-style pattern matches. For syntax details, see the org.springframework.util.AntPathMatcher javadoc. |
|
open fun setUrlMap(urlMap: MutableMap<String, *>): Unit
Set a Map with URL paths as keys and handler beans (or handler bean names) as values. Convenient for population with bean references. Supports direct URL matches and Ant-style pattern matches. For syntax details, see the org.springframework.util.AntPathMatcher javadoc. |