org.apache.camel.component.netty
Class ChannelHandlerFactories

java.lang.Object
  extended by org.apache.camel.component.netty.ChannelHandlerFactories

public final class ChannelHandlerFactories
extends Object

Helper to create commonly used ChannelHandlerFactory instances.


Method Summary
static ChannelHandlerFactory newDelimiterBasedFrameDecoder(int maxFrameLength, org.jboss.netty.buffer.ChannelBuffer[] delimiters)
           
static ChannelHandlerFactory newLengthFieldBasedFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip)
           
static ChannelHandlerFactory newObjectDecoder()
           
static ChannelHandlerFactory newObjectEncoder()
           
static ChannelHandlerFactory newStringDecoder(Charset charset)
           
static ChannelHandlerFactory newStringEncoder(Charset charset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newStringEncoder

public static ChannelHandlerFactory newStringEncoder(Charset charset)

newStringDecoder

public static ChannelHandlerFactory newStringDecoder(Charset charset)

newObjectDecoder

public static ChannelHandlerFactory newObjectDecoder()

newObjectEncoder

public static ChannelHandlerFactory newObjectEncoder()

newDelimiterBasedFrameDecoder

public static ChannelHandlerFactory newDelimiterBasedFrameDecoder(int maxFrameLength,
                                                                  org.jboss.netty.buffer.ChannelBuffer[] delimiters)

newLengthFieldBasedFrameDecoder

public static ChannelHandlerFactory newLengthFieldBasedFrameDecoder(int maxFrameLength,
                                                                    int lengthFieldOffset,
                                                                    int lengthFieldLength,
                                                                    int lengthAdjustment,
                                                                    int initialBytesToStrip)


Apache Camel