public class PerMessageCompressionExtension extends Extension
Attempts to follow draft-ietf-hybi-permessage-compression-01
Constructor and Description |
---|
PerMessageCompressionExtension() |
Modifier and Type | Method and Description |
---|---|
void |
incoming(WebSocketFrame frame) |
boolean |
isRsv1User()
Indicates use of RSV1 flag for indicating deflation is in use.
|
boolean |
isTextDataDecoder()
Used to indicate that the extension works as a decoder of TEXT Data Frames.
|
<C> void |
output(C context,
Callback<C> callback,
WebSocketFrame frame) |
void |
setConfig(ExtensionConfig config) |
String |
toString() |
getBufferPool, getConfig, getName, getNextIncomingFrames, getNextOutgoingFrames, getParameterizedName, getPolicy, incoming, isRsv2User, isRsv3User, nextIncoming, nextIncoming, nextOutput, nextOutputNoCallback, setBufferPool, setNextIncomingFrames, setNextOutgoingFrames, setPolicy
public void incoming(WebSocketFrame frame)
incoming
in interface IncomingFrames
incoming
in class Extension
public boolean isRsv1User()
isRsv1User
in class Extension
public boolean isTextDataDecoder()
Extension
This is used to adjust validation during parsing/generating, as per spec TEXT Data Frames can only contain UTF8 encoded String data.
Example: a compression extension will process a compressed set of text data, the parser/generator should no longer be concerned about the validity of the TEXT Data Frames as this is now the responsibility of the extension.
isTextDataDecoder
in class Extension
public <C> void output(C context, Callback<C> callback, WebSocketFrame frame) throws IOException
output
in interface OutgoingFrames
output
in class Extension
IOException
public void setConfig(ExtensionConfig config)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.