open class JettyWebSocketClient : AbstractWebSocketClient, Lifecycle
Initiates WebSocket requests to a WebSocket server programmatically through the Jetty WebSocket API.
As of 4.1 this class implements Lifecycle rather than org.springframework.context.SmartLifecycle. Use org.springframework.web.socket.client.WebSocketConnectionManager instead to auto-start a WebSocket connection.
Author
Rossen Stoyanchev
Since
4.0
JettyWebSocketClient()
Default constructor that creates an instance of org.eclipse.jetty.websocket.client.WebSocketClient. JettyWebSocketClient(client: WebSocketClient)
Constructor that accepts an existing org.eclipse.jetty.websocket.client.WebSocketClient instance. |
open fun doHandshake(webSocketHandler: WebSocketHandler, uriTemplate: String, vararg uriVars: Any): ListenableFuture<WebSocketSession> |
|
open fun doHandshakeInternal(wsHandler: WebSocketHandler, headers: HttpHeaders, uri: URI, protocols: MutableList<String>, extensions: MutableList<WebSocketExtension>, attributes: MutableMap<String, Any>): ListenableFuture<WebSocketSession> |
|
open fun getTaskExecutor(): AsyncListenableTaskExecutor
Return the configured TaskExecutor. |
|
open fun isRunning(): Boolean |
|
open fun setTaskExecutor(taskExecutor: AsyncListenableTaskExecutor): Unit
Set an AsyncListenableTaskExecutor to use when opening connections. If this property is set to By default an instance of |
|
open fun start(): Unit |
|
open fun stop(): Unit |