All Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type |
Method and Description |
protected byte |
checkForLastFrame(DataFrame frame,
byte opcode) |
GrizzlyFuture<DataFrame> |
close(int code,
String reason) |
abstract HandShake |
createClientHandShake(URI uri) |
abstract HandShake |
createServerHandShake(HttpContent requestContent) |
long |
decodeLength(byte[] bytes)
Convert a byte[] to a long.
|
void |
doClose() |
byte[] |
encodeLength(long length)
Converts the length given to the appropriate framing data:
0-125 one element that is the payload length.
|
abstract byte[] |
frame(DataFrame frame) |
protected ByteBuffer |
getByteBuffer(byte[] data) |
Connection |
getConnection() |
FilterChainContext |
getFilterChainContext() |
protected WebSocketMappingData |
getMappingData() |
WebSocket |
getWebSocket() |
HandShake |
handshake(FilterChainContext ctx,
WebSocketApplication app,
HttpContent request) |
protected abstract boolean |
isControlFrame(byte opcode) |
boolean |
isMaskData() |
abstract DataFrame |
parse(Buffer buffer) |
GrizzlyFuture<DataFrame> |
send(byte[] data) |
GrizzlyFuture<DataFrame> |
send(DataFrame frame) |
GrizzlyFuture<DataFrame> |
send(DataFrame frame,
CompletionHandler<DataFrame> completionHandler) |
GrizzlyFuture<DataFrame> |
send(String data) |
void |
setConnection(Connection handler) |
void |
setFilterChainContext(FilterChainContext ctx) |
protected void |
setMappingData(WebSocketMappingData mappingData) |
void |
setWebSocket(WebSocket webSocket) |
GrizzlyFuture<DataFrame> |
stream(boolean last,
byte[] bytes,
int off,
int len) |
GrizzlyFuture<DataFrame> |
stream(boolean last,
String fragment) |
DataFrame |
toDataFrame(byte[] data) |
DataFrame |
toDataFrame(byte[] data,
boolean last) |
DataFrame |
toDataFrame(String data) |
DataFrame |
toDataFrame(String data,
boolean last) |
DataFrame |
unframe(Buffer buffer) |
protected void |
utf8Decode(boolean finalFragment,
byte[] data,
DataFrame dataFrame) |
protected void |
validate(byte fragmentType,
byte opcode) |