com.sun.grizzly.websockets
Class ClientHandShake

java.lang.Object
  extended by com.sun.grizzly.websockets.HandShake
      extended by com.sun.grizzly.websockets.ClientHandShake

public class ClientHandShake
extends HandShake


Constructor Summary
ClientHandShake(boolean isSecure, String origin, String serverHostName, String portNumber, String path)
           
ClientHandShake(Request request, boolean secure, ByteChunk chunk)
           
 
Method Summary
 byte[] getBytes()
           
 SecKey getKey1()
           
 SecKey getKey2()
           
 byte[] getKey3()
           
 void validateServerResponse(byte[] key)
           
 
Methods inherited from class com.sun.grizzly.websockets.HandShake
getLocation, getOrigin, getPort, getResourcePath, getServerHostName, getSubProtocol, isSecure, setLocation, setOrigin, setPort, setResourcePath, setSecure, setServerHostName, setSubProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHandShake

public ClientHandShake(boolean isSecure,
                       String origin,
                       String serverHostName,
                       String portNumber,
                       String path)

ClientHandShake

public ClientHandShake(Request request,
                       boolean secure,
                       ByteChunk chunk)
                throws IOException,
                       HandshakeException
Throws:
IOException
HandshakeException
Method Detail

getKey1

public SecKey getKey1()

getKey2

public SecKey getKey2()

getKey3

public byte[] getKey3()

validateServerResponse

public void validateServerResponse(byte[] key)
                            throws HandshakeException
Throws:
HandshakeException

getBytes

public byte[] getBytes()
                throws IOException
Throws:
IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.