public class Draft06Handler extends ProtocolHandler
connection, currentDecoder, inFragmentedType, maskData, outFragmentedType, processingFragment, remainder, utf8| Constructor and Description |
|---|
Draft06Handler() |
Draft06Handler(boolean maskData) |
| Modifier and Type | Method and Description |
|---|---|
HandShake |
createHandShake(URI uri)
Client side.
|
HandShake |
createHandShake(WebSocketRequest request)
Server side.
|
byte[] |
frame(DataFrame frame) |
protected boolean |
isControlFrame(byte opcode) |
DataFrame |
parse(ByteBuffer buffer) |
checkForLastFrame, close, decodeLength, doClose, encodeLength, getByteBuffer, getConnection, getWebSocket, handshake, isMaskData, send, send, send, send, setConnection, setWebSocket, stream, stream, unframe, utf8Decode, validatepublic Draft06Handler()
public Draft06Handler(boolean maskData)
public HandShake createHandShake(WebSocketRequest request)
ProtocolHandlercreateHandShake in class ProtocolHandlerrequest - TODOpublic HandShake createHandShake(URI uri)
ProtocolHandlercreateHandShake in class ProtocolHandleruri - TODOpublic byte[] frame(DataFrame frame)
frame in class ProtocolHandlerpublic DataFrame parse(ByteBuffer buffer)
parse in class ProtocolHandlerprotected boolean isControlFrame(byte opcode)
isControlFrame in class ProtocolHandlerCopyright © 2012-2013. All Rights Reserved.