org.glassfish.tyrus.grizzly
Class GrizzlyProtocolHandler

java.lang.Object
  extended by org.glassfish.grizzly.websockets.ProtocolHandler
      extended by org.glassfish.grizzly.websockets.draft07.Draft07Handler
          extended by org.glassfish.grizzly.websockets.draft08.Draft08Handler
              extended by org.glassfish.grizzly.websockets.draft17.Draft17Handler
                  extended by org.glassfish.tyrus.grizzly.GrizzlyProtocolHandler

public class GrizzlyProtocolHandler
extends org.glassfish.grizzly.websockets.draft17.Draft17Handler

ProtocolHandler that supports sub-protocol and Extension insertion.

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Field Summary
 
Fields inherited from class org.glassfish.grizzly.websockets.ProtocolHandler
connection, currentDecoder, inFragmentedType, maskData, outFragmentedType, processingFragment, remainder, utf8
 
Constructor Summary
GrizzlyProtocolHandler(boolean mask, String subprotocol, List<Extension> extensions)
          Construct new GrizzlyProtocolHandler.
 
Method Summary
 org.glassfish.grizzly.websockets.HandShake createHandShake(org.glassfish.grizzly.http.HttpContent requestContent)
           
 
Methods inherited from class org.glassfish.grizzly.websockets.draft17.Draft17Handler
createHandShake
 
Methods inherited from class org.glassfish.grizzly.websockets.draft07.Draft07Handler
frame, isControlFrame, parse
 
Methods inherited from class org.glassfish.grizzly.websockets.ProtocolHandler
checkForLastFrame, close, decodeLength, doClose, encodeLength, getByteBuffer, getConnection, getWebSocket, handshake, isMaskData, send, send, send, send, setConnection, setWebSocket, stream, stream, unframe, utf8Decode, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyProtocolHandler

public GrizzlyProtocolHandler(boolean mask,
                              String subprotocol,
                              List<Extension> extensions)
Construct new GrizzlyProtocolHandler.

Parameters:
mask - data mask, see ProtocolHandler.
subprotocol - selected by server.
extensions - supported by server.
Method Detail

createHandShake

public org.glassfish.grizzly.websockets.HandShake createHandShake(org.glassfish.grizzly.http.HttpContent requestContent)
Overrides:
createHandShake in class org.glassfish.grizzly.websockets.draft17.Draft17Handler


Copyright © 2012. All Rights Reserved.