| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private SSLContext | |
| private AsyncTaskExecutor | |
| private final Map | |
| private final WebSocketContainer |
| Access | Constructor and Description |
|---|---|
| public | StandardWebSocketClient()
Default constructor that calls |
| public | StandardWebSocketClient(WebSocketContainer webSocketContainer)
Constructor accepting an existing |
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| protected CompletableFuture | executeInternal(WebSocketHandler
the client-side handler for WebSocket messages webSocketHandler, HttpHeaders the HTTP headers to use for the handshake, with unwanted (forbidden)
headers filtered out (never headers, final URI null)the target URI for the handshake (never uri, List<String> null)requested sub-protocols, or an empty list protocols, List<WebSocketExtension> requested WebSocket extensions, or an empty list extensions, Map<String, Object> the attributes to associate with the WebSocketSession, i.e. via
attributes)WebSocketSession#getAttributes(); currently always an empty mapImplements abstract org. Perform the actual handshake to establish a connection to the server. |
| private static InetAddress | |
| private static int | |
| public SSLContext | |
| public AsyncTaskExecutor | |
| public Map | |
| public void | setSslContext(SSLContext sslContext)
Set the |
| public void | setTaskExecutor(AsyncTaskExecutor taskExecutor)
Set an |
| public void | setUserProperties(Map<String, Object> userProperties)
The standard Jakarta WebSocket API allows passing "user properties" to the
server via |
| sslContext | back to summary |
|---|---|
| private SSLContext sslContext
| |
| taskExecutor | back to summary |
|---|---|
| private AsyncTaskExecutor taskExecutor
| |
| userProperties | back to summary |
|---|---|
| private final Map<String, Object> userProperties | |
| webSocketContainer | back to summary |
|---|---|
| private final WebSocketContainer webSocketContainer | |
| StandardWebSocketClient | back to summary |
|---|---|
| public StandardWebSocketClient() Default constructor that calls | |
| StandardWebSocketClient | back to summary |
|---|---|
| public StandardWebSocketClient(WebSocketContainer webSocketContainer) Constructor accepting an existing For XML configuration, see | |
| adaptExtensions | back to summary |
|---|---|
| private static List | |
| executeInternal | back to summary |
|---|---|
| protected CompletableFuture Implements abstract org. Doc from org. Perform the actual handshake to establish a connection to the server.
| |
| getLocalHost | back to summary |
|---|---|
| private static InetAddress getLocalHost() | |
| getPort | back to summary |
|---|---|
| private static int getPort(URI uri) | |
| getSslContext | back to summary |
|---|---|
| public SSLContext getSslContext() Return the
| |
| getTaskExecutor | back to summary |
|---|---|
| public AsyncTaskExecutor getTaskExecutor() Return the configured
| |
| getUserProperties | back to summary |
|---|---|
| public Map Return the configured user properties. | |
| setSslContext | back to summary |
|---|---|
| public void setSslContext(SSLContext sslContext) Set the
| |
| setTaskExecutor | back to summary |
|---|---|
| public void setTaskExecutor(AsyncTaskExecutor taskExecutor) Set an If this property is set to By default, an instance of | |
| setUserProperties | back to summary |
|---|---|
| public void setUserProperties(Map<String, Object> userProperties) The standard Jakarta WebSocket API allows passing "user properties" to the
server via | |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterResponse(HandshakeResponse
The response response)Overrides jakarta. Provides the client with a mechanism to inspect the handshake response that is returned from the server. |
| public void | beforeRequest(Map<String, List<String>>
The HTTP headers requestHeaders)Overrides jakarta. Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake. |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| StandardWebSocketClientConfigurator | back to summary |
|---|---|
| public StandardWebSocketClientConfigurator(HttpHeaders headers) | |
| afterResponse | back to summary |
|---|---|
| public void afterResponse(HandshakeResponse response) Overrides jakarta. Doc from jakarta. Provides the client with a mechanism to inspect the handshake response that is returned from the server.
| |
| beforeRequest | back to summary |
|---|---|
| public void beforeRequest(Map<String, List<String>> requestHeaders) Overrides jakarta. Doc from jakarta. Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake. | |