public class Draft07Handler extends ProtocolHandler
connection, currentDecoder, inFragmentedType, maskData, outFragmentedType, processingFragment, remainder, utf8| Constructor and Description |
|---|
Draft07Handler(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 byte[] frame(DataFrame frame)
frame in class ProtocolHandlerpublic DataFrame parse(ByteBuffer buffer)
parse in class ProtocolHandlerprotected boolean isControlFrame(byte opcode)
isControlFrame in class ProtocolHandlerpublic HandShake createHandShake(WebSocketRequest request)
ProtocolHandlercreateHandShake in class ProtocolHandlerrequest - TODOpublic HandShake createHandShake(URI uri)
ProtocolHandlercreateHandShake in class ProtocolHandleruri - TODOCopyright © 2012-2013. All Rights Reserved.