org.glassfish.grizzly.websockets.draft76
Class HandShake76

java.lang.Object
  extended by org.glassfish.grizzly.websockets.HandShake
      extended by org.glassfish.grizzly.websockets.draft76.HandShake76

public class HandShake76
extends HandShake


Field Summary
static java.lang.String SEC_WS_KEY1_HEADER
           
static java.lang.String SEC_WS_KEY2_HEADER
           
static java.lang.String SERVER_SEC_WS_LOCATION_HEADER
           
static java.lang.String SERVER_SEC_WS_ORIGIN_HEADER
           
 
Constructor Summary
HandShake76(HttpContent message)
           
HandShake76(java.net.URI uri)
           
 
Method Summary
 HttpContent composeHeaders()
           
 void initiate(FilterChainContext ctx)
           
 void respond(FilterChainContext ctx, WebSocketApplication app, HttpResponsePacket response)
           
 void setHeaders(HttpResponsePacket response)
           
 void validateServerResponse(HttpResponsePacket headers)
           
 
Methods inherited from class org.glassfish.grizzly.websockets.HandShake
buildLocation, getExtensions, getLocation, getOrigin, getPort, getResourcePath, getServerHostName, getSubProtocol, isSecure, join, readHeader, setExtensions, setLocation, setOrigin, setPort, setResourcePath, setSecure, setServerHostName, setSubProtocol, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEC_WS_KEY1_HEADER

public static final java.lang.String SEC_WS_KEY1_HEADER
See Also:
Constant Field Values

SEC_WS_KEY2_HEADER

public static final java.lang.String SEC_WS_KEY2_HEADER
See Also:
Constant Field Values

SERVER_SEC_WS_ORIGIN_HEADER

public static final java.lang.String SERVER_SEC_WS_ORIGIN_HEADER
See Also:
Constant Field Values

SERVER_SEC_WS_LOCATION_HEADER

public static final java.lang.String SERVER_SEC_WS_LOCATION_HEADER
See Also:
Constant Field Values
Constructor Detail

HandShake76

public HandShake76(java.net.URI uri)

HandShake76

public HandShake76(HttpContent message)
Method Detail

composeHeaders

public HttpContent composeHeaders()
Overrides:
composeHeaders in class HandShake

initiate

public void initiate(FilterChainContext ctx)
              throws java.io.IOException
Overrides:
initiate in class HandShake
Throws:
java.io.IOException

validateServerResponse

public void validateServerResponse(HttpResponsePacket headers)
Overrides:
validateServerResponse in class HandShake

respond

public void respond(FilterChainContext ctx,
                    WebSocketApplication app,
                    HttpResponsePacket response)
Overrides:
respond in class HandShake

setHeaders

public void setHeaders(HttpResponsePacket response)
Specified by:
setHeaders in class HandShake


Copyright © 2011 Oracle Corpration. All Rights Reserved.