public class Handshake extends Object
| Constructor and Description |
|---|
Handshake() |
| Modifier and Type | Method and Description |
|---|---|
static Tuple<String,String> |
constructHeaders(int protocolVersion,
URI uri,
byte[] keyBytes,
WebSocketExtension[] extensions,
String... protocols) |
static byte[] |
constructRequest(URI uri,
Tuple<String,String> headerTuple) |
static HandshakeResponse |
validateResponse(Tuple<String,String> headerTuple,
String response,
byte[] keyBytes,
WebSocketExtension[] installedExtensions,
String... protocols) |
public static Tuple<String,String> constructHeaders(int protocolVersion, URI uri, byte[] keyBytes, WebSocketExtension[] extensions, String... protocols) throws IOException
IOExceptionpublic static byte[] constructRequest(URI uri, Tuple<String,String> headerTuple) throws IOException
IOExceptionpublic static HandshakeResponse validateResponse(Tuple<String,String> headerTuple, String response, byte[] keyBytes, WebSocketExtension[] installedExtensions, String... protocols) throws IOException, NoSuchAlgorithmException, SyntaxException
Copyright © 2017. All rights reserved.