org.apache.camel.component.mina
Class TextLineCodecFactory

java.lang.Object
  extended by org.apache.camel.component.mina.TextLineCodecFactory
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolCodecFactory

public class TextLineCodecFactory
extends Object
implements org.apache.mina.filter.codec.ProtocolCodecFactory

Text line codec that supports setting charset and delimiter.

Uses Mina's default TextLineEncoder and TextLineDncoder.


Constructor Summary
TextLineCodecFactory(Charset charset, org.apache.mina.filter.codec.textline.LineDelimiter delimiter)
           
 
Method Summary
 org.apache.mina.filter.codec.ProtocolDecoder getDecoder()
           
 int getDecoderMaxLineLength()
           
 org.apache.mina.filter.codec.ProtocolEncoder getEncoder()
           
 int getEncoderMaxLineLength()
           
 void setDecoderMaxLineLength(int decoderMaxLineLength)
           
 void setEncoderMaxLineLength(int encoderMaxLineLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLineCodecFactory

public TextLineCodecFactory(Charset charset,
                            org.apache.mina.filter.codec.textline.LineDelimiter delimiter)
Method Detail

getEncoder

public org.apache.mina.filter.codec.ProtocolEncoder getEncoder()
                                                        throws Exception
Specified by:
getEncoder in interface org.apache.mina.filter.codec.ProtocolCodecFactory
Throws:
Exception

getDecoder

public org.apache.mina.filter.codec.ProtocolDecoder getDecoder()
                                                        throws Exception
Specified by:
getDecoder in interface org.apache.mina.filter.codec.ProtocolCodecFactory
Throws:
Exception

setEncoderMaxLineLength

public void setEncoderMaxLineLength(int encoderMaxLineLength)

getEncoderMaxLineLength

public int getEncoderMaxLineLength()

setDecoderMaxLineLength

public void setDecoderMaxLineLength(int decoderMaxLineLength)

getDecoderMaxLineLength

public int getDecoderMaxLineLength()


Apache CAMEL