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, wait
transformOutbound
public static final CompressingTransformer getTransformer(Compressor compressor)
public java.util.EnumSet<Frame.Header.Flag> getOutboundHeaderFlags()
FrameBodyTransformer
getOutboundHeaderFlags
in interface FrameBodyTransformer
public io.netty.buffer.ByteBuf transformInbound(io.netty.buffer.ByteBuf inputBuf, java.util.EnumSet<Frame.Header.Flag> flags) throws java.io.IOException
FrameBodyTransformer
transformInbound
in interface FrameBodyTransformer
inputBuf
- the frame body from an inbound messagejava.io.IOException
- if the transformation failed for any reasonCopyright © 2009-2020 The Apache Software Foundation