Package org.apache.camel.component.netty
Class ChannelHandlerFactories
java.lang.Object
org.apache.camel.component.netty.ChannelHandlerFactories
Helper to create commonly used
ChannelHandlerFactory instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelHandlerFactorynewByteArrayDecoder(String protocol) static ChannelHandlerFactorynewByteArrayEncoder(String protocol) static ChannelHandlerFactorystatic ChannelHandlerFactorystatic ChannelHandlerFactorynewDelimiterBasedFrameDecoder(int maxFrameLength, io.netty.buffer.ByteBuf[] delimiters, boolean stripDelimiter, String protocol) static ChannelHandlerFactorynewDelimiterBasedFrameDecoder(int maxFrameLength, io.netty.buffer.ByteBuf[] delimiters, String protocol) static ChannelHandlerFactorynewLengthFieldBasedFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) static ChannelHandlerFactorynewStringDecoder(Charset charset, String protocol) static ChannelHandlerFactorynewStringEncoder(Charset charset, String protocol)
-
Method Details
-
newStringEncoder
-
newStringDecoder
-
newDelimiterBasedFrameDecoder
public static ChannelHandlerFactory newDelimiterBasedFrameDecoder(int maxFrameLength, io.netty.buffer.ByteBuf[] delimiters, String protocol) -
newDelimiterBasedFrameDecoder
public static ChannelHandlerFactory newDelimiterBasedFrameDecoder(int maxFrameLength, io.netty.buffer.ByteBuf[] delimiters, boolean stripDelimiter, String protocol) -
newDatagramPacketDecoder
-
newDatagramPacketEncoder
-
newLengthFieldBasedFrameDecoder
public static ChannelHandlerFactory newLengthFieldBasedFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) -
newByteArrayDecoder
-
newByteArrayEncoder
-