org.glassfish.grizzly.websockets
Class ClientHandshake
java.lang.Object
org.glassfish.grizzly.websockets.ClientHandshake
public class ClientHandshake
- extends Object
Client-side WebSocket handshake information.
- Author:
- Alexey Stashok
- See Also:
WebSocketHandshake,
ServerHandshake
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientHandshake
public ClientHandshake(URI uri,
String... protocols)
getKey
public SecKey getKey()
validateServerResponse
public void validateServerResponse(HttpResponsePacket headers)
throws HandshakeException
- Throws:
HandshakeException
composeHeaders
public HttpContent composeHeaders()
getExtensions
public String[] getExtensions()
setExtensions
public void setExtensions(String[] extensions)
getURI
public URI getURI()
Copyright © 2011 Oracle Corpration. All Rights Reserved.