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)
           
 
Method Summary
 byte[] getBytes()
           
 SecKey getKey()
           
 void validateServerResponse(Map<String,String> headers)
           
 
Methods inherited from class com.sun.grizzly.websockets.HandShake
getExtensions, getLocation, getOrigin, getPort, getResourcePath, getServerHostName, getSubProtocol, isSecure, join, setExtensions, 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)
Method Detail

getKey

public SecKey getKey()

validateServerResponse

public void validateServerResponse(Map<String,String> headers)
                            throws HandshakeException
Throws:
HandshakeException

getBytes

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


Copyright © 2012 Oracle Corporation. All Rights Reserved.