public abstract class AbstractWebSocketClient extends Object implements WebSocketClient
WebSocketClient implementations.| Constructor and Description |
|---|
AbstractWebSocketClient() |
| Modifier and Type | Method and Description |
|---|---|
WebSocketSession |
doHandshake(WebSocketHandler webSocketHandler,
org.springframework.http.HttpHeaders headers,
URI uri) |
WebSocketSession |
doHandshake(WebSocketHandler webSocketHandler,
String uriTemplate,
Object... uriVars) |
protected abstract WebSocketSession |
doHandshakeInternal(WebSocketHandler webSocketHandler,
org.springframework.http.HttpHeaders headers,
URI uri,
List<String> subProtocols,
Map<String,Object> handshakeAttributes)
Perform the actual handshake to establish a connection to the server.
|
protected final Log logger
public WebSocketSession doHandshake(WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVars) throws WebSocketConnectFailureException
doHandshake in interface WebSocketClientWebSocketConnectFailureExceptionpublic final WebSocketSession doHandshake(WebSocketHandler webSocketHandler, org.springframework.http.HttpHeaders headers, URI uri) throws WebSocketConnectFailureException
doHandshake in interface WebSocketClientWebSocketConnectFailureExceptionprotected abstract WebSocketSession doHandshakeInternal(WebSocketHandler webSocketHandler, org.springframework.http.HttpHeaders headers, URI uri, List<String> subProtocols, Map<String,Object> handshakeAttributes) throws WebSocketConnectFailureException
webSocketHandler - the client-side handler for WebSocket messagesheaders - HTTP headers to use for the handshake, with unwanted (forbidden)
headers filtered out, never nulluri - the target URI for the handshake, never nullsubProtocols - requested sub-protocols, or an empty listhandshakeAttributes - attributes to make available via
WebSocketSession.getHandshakeAttributes(); currently always an empty map.WebSocketConnectFailureException