org.apache.camel.component.mina2
Class Mina2TextLineCodecFactory
java.lang.Object
org.apache.camel.component.mina2.Mina2TextLineCodecFactory
- All Implemented Interfaces:
- org.apache.mina.filter.codec.ProtocolCodecFactory
public class Mina2TextLineCodecFactory
- 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mina2TextLineCodecFactory
public Mina2TextLineCodecFactory(Charset charset,
org.apache.mina.filter.codec.textline.LineDelimiter delimiter)
getEncoder
public org.apache.mina.filter.codec.ProtocolEncoder getEncoder(org.apache.mina.core.session.IoSession session)
throws Exception
- Specified by:
getEncoder
in interface org.apache.mina.filter.codec.ProtocolCodecFactory
- Throws:
Exception
getDecoder
public org.apache.mina.filter.codec.ProtocolDecoder getDecoder(org.apache.mina.core.session.IoSession session)
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