public abstract class CompressingTransformer extends java.lang.Object implements FrameBodyTransformer
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<Frame.Header.Flag> |
getOutboundHeaderFlags()
Returns an EnumSet of the flags that should be added to the header for any message whose frame body has been
modified by the transformer.
|
static CompressingTransformer |
getTransformer(Compressor compressor) |
io.netty.buffer.ByteBuf |
transformInbound(io.netty.buffer.ByteBuf inputBuf,
java.util.EnumSet<Frame.Header.Flag> flags)
Accepts the input buffer representing the frame body of an incoming message and applies a transformation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformOutboundpublic static final CompressingTransformer getTransformer(Compressor compressor)
public java.util.EnumSet<Frame.Header.Flag> getOutboundHeaderFlags()
FrameBodyTransformergetOutboundHeaderFlags in interface FrameBodyTransformerpublic io.netty.buffer.ByteBuf transformInbound(io.netty.buffer.ByteBuf inputBuf,
java.util.EnumSet<Frame.Header.Flag> flags)
throws java.io.IOException
FrameBodyTransformertransformInbound in interface FrameBodyTransformerinputBuf - the frame body from an inbound messagejava.io.IOException - if the transformation failed for any reasonCopyright © 2009-2019 The Apache Software Foundation