public interface 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.
|
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.
|
io.netty.buffer.ByteBuf |
transformOutbound(io.netty.buffer.ByteBuf inputBuf)
Accepts an input buffer representing the frame body of an outbound message and applies a transformation.
|
io.netty.buffer.ByteBuf transformInbound(io.netty.buffer.ByteBuf inputBuf, java.util.EnumSet<Frame.Header.Flag> flags) throws java.io.IOException
inputBuf
- the frame body from an inbound messagejava.io.IOException
- if the transformation failed for any reasonio.netty.buffer.ByteBuf transformOutbound(io.netty.buffer.ByteBuf inputBuf) throws java.io.IOException
inputBuf
- the frame body from an outgoing messagejava.io.IOException
- if the transformation failed for any reasonjava.util.EnumSet<Frame.Header.Flag> getOutboundHeaderFlags()
Copyright © 2009-2020 The Apache Software Foundation