org.glassfish.grizzly.websockets
Class ClientHandshake

java.lang.Object
  extended by org.glassfish.grizzly.websockets.ClientHandshake

public class ClientHandshake
extends Object

Client-side WebSocket handshake information.

Author:
Alexey Stashok
See Also:
WebSocketHandshake, ServerHandshake

Constructor Summary
ClientHandshake(URI uri, String... protocols)
           
 
Method Summary
 HttpContent composeHeaders()
           
 String[] getExtensions()
           
 SecKey getKey()
           
 URI getURI()
           
 void setExtensions(String[] extensions)
           
 void validateServerResponse(HttpResponsePacket headers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHandshake

public ClientHandshake(URI uri,
                       String... protocols)
Method Detail

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.