Package org.apache.camel.component.netty
Class ChannelHandlerFactories
- java.lang.Object
-
- org.apache.camel.component.netty.ChannelHandlerFactories
-
public final class ChannelHandlerFactories extends Object
Helper to create commonly usedChannelHandlerFactoryinstances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChannelHandlerFactorynewByteArrayDecoder(String protocol)static ChannelHandlerFactorynewByteArrayEncoder(String protocol)static ChannelHandlerFactorynewDatagramPacketDecoder()static ChannelHandlerFactorynewDatagramPacketEncoder()static 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 Detail
-
newStringEncoder
public static ChannelHandlerFactory newStringEncoder(Charset charset, String protocol)
-
newStringDecoder
public static ChannelHandlerFactory newStringDecoder(Charset charset, String protocol)
-
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
public static ChannelHandlerFactory newDatagramPacketDecoder()
-
newDatagramPacketEncoder
public static ChannelHandlerFactory newDatagramPacketEncoder()
-
newLengthFieldBasedFrameDecoder
public static ChannelHandlerFactory newLengthFieldBasedFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip)
-
newByteArrayDecoder
public static ChannelHandlerFactory newByteArrayDecoder(String protocol)
-
newByteArrayEncoder
public static ChannelHandlerFactory newByteArrayEncoder(String protocol)
-
-