Package io.undertow.websockets.client
Class WebSocket13ClientHandshake
- java.lang.Object
-
- io.undertow.websockets.client.WebSocketClientHandshake
-
- io.undertow.websockets.client.WebSocket13ClientHandshake
-
public class WebSocket13ClientHandshake extends WebSocketClientHandshake
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static String
MAGIC_NUMBER
-
Fields inherited from class io.undertow.websockets.client.WebSocketClientHandshake
url
-
-
Constructor Summary
Constructors Constructor Description WebSocket13ClientHandshake(URI url)
WebSocket13ClientHandshake(URI url, WebSocketClientNegotiation negotiation, Set<ExtensionHandshake> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketChannel
createChannel(org.xnio.StreamConnection channel, String wsUri, ByteBufferPool bufferPool, org.xnio.OptionMap options)
Map<String,String>
createHeaders()
protected String
createSecKey()
WebSocketVersion
getVersion()
org.xnio.http.ExtendedHandshakeChecker
handshakeChecker(URI uri, Map<String,List<String>> requestHeaders)
protected String
solve(String nonceBase64)
-
Methods inherited from class io.undertow.websockets.client.WebSocketClientHandshake
create, create
-
-
-
-
Field Detail
-
MAGIC_NUMBER
public static final String MAGIC_NUMBER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebSocket13ClientHandshake
public WebSocket13ClientHandshake(URI url, WebSocketClientNegotiation negotiation, Set<ExtensionHandshake> extensions)
-
WebSocket13ClientHandshake
public WebSocket13ClientHandshake(URI url)
-
-
Method Detail
-
createChannel
public WebSocketChannel createChannel(org.xnio.StreamConnection channel, String wsUri, ByteBufferPool bufferPool, org.xnio.OptionMap options)
- Specified by:
createChannel
in classWebSocketClientHandshake
-
createHeaders
public Map<String,String> createHeaders()
- Specified by:
createHeaders
in classWebSocketClientHandshake
-
createSecKey
protected String createSecKey()
-
handshakeChecker
public org.xnio.http.ExtendedHandshakeChecker handshakeChecker(URI uri, Map<String,List<String>> requestHeaders)
- Specified by:
handshakeChecker
in classWebSocketClientHandshake
-
getVersion
public WebSocketVersion getVersion()
-
-