spring-framework / org.springframework.web.socket.client.standard / AnnotatedEndpointConnectionManager

AnnotatedEndpointConnectionManager

open class AnnotatedEndpointConnectionManager : ConnectionManagerSupport, BeanFactoryAware

A WebSocket connection manager that is given a URI, a javax.websocket.ClientEndpoint-annotated endpoint, connects to a WebSocket server through the #start() and #stop() methods. If #setAutoStartup(boolean) is set to true this will be done automatically when the Spring ApplicationContext is refreshed.

Author
Rossen Stoyanchev

Since
4.0

Constructors

<init>

AnnotatedEndpointConnectionManager(endpoint: Any, uriTemplate: String, vararg uriVariables: Any)
AnnotatedEndpointConnectionManager(endpointClass: Class<*>, uriTemplate: String, vararg uriVariables: Any)

Functions

getTaskExecutor

open fun getTaskExecutor(): TaskExecutor

Return the configured TaskExecutor.

getWebSocketContainer

open fun getWebSocketContainer(): WebSocketContainer

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit

setTaskExecutor

open fun setTaskExecutor(taskExecutor: TaskExecutor): Unit

Set a TaskExecutor to use to open the connection. By default SimpleAsyncTaskExecutor is used.

setWebSocketContainer

open fun setWebSocketContainer(webSocketContainer: WebSocketContainer): Unit