public class CompressExtension extends Extension
Attempts to follow draft-ietf-hybi-permessage-compression-00
Constructor and Description |
---|
CompressExtension() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
deflate(ByteBuffer data) |
void |
incoming(WebSocketFrame frame) |
ByteBuffer |
inflate(ByteBuffer data) |
<C> void |
output(C context,
Callback<C> callback,
WebSocketFrame frame) |
int |
readUncompresseLength(ByteBuffer data)
Read the uncompressed length indicator in the frame.
|
void |
setConfig(ExtensionConfig config) |
String |
toString() |
boolean |
useRsv1()
Indicates use of RSV1 flag for indicating deflation is in use.
|
getBufferPool, getConfig, getName, getNextIncomingFrames, getNextOutgoingFrames, getParameterizedName, getPolicy, incoming, nextIncoming, nextIncoming, nextOutput, nextOutputNoCallback, setBufferPool, setNextIncomingFrames, setNextOutgoingFrames, setPolicy, useRsv2, useRsv3
public ByteBuffer deflate(ByteBuffer data)
public void incoming(WebSocketFrame frame)
incoming
in interface IncomingFrames
incoming
in class Extension
public ByteBuffer inflate(ByteBuffer data)
public <C> void output(C context, Callback<C> callback, WebSocketFrame frame) throws IOException
output
in interface OutgoingFrames
output
in class Extension
IOException
public int readUncompresseLength(ByteBuffer data)
Will modify the position of the buffer.
data
- public void setConfig(ExtensionConfig config)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.