Class MultiLineDecoder
- java.lang.Object
-
- org.apache.mina.filter.codec.ProtocolDecoderAdapter
-
- org.apache.mina.filter.codec.CumulativeProtocolDecoder
-
- org.opennms.netmgt.provision.support.codec.MultiLineDecoder
-
- All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolDecoder
- Direct Known Subclasses:
MultilineHttpStatusResponseDecoder
public class MultiLineDecoder extends org.apache.mina.filter.codec.CumulativeProtocolDecoder
MultiLineDecoder class.
- Version:
- $Id: $
- Author:
- thedesloge
-
-
Field Summary
Fields Modifier and Type Field Description protected String
CURRENT_RESPONSE
-
Constructor Summary
Constructors Constructor Description MultiLineDecoder(Charset charset, String multilineIndicator)
Constructor for MultiLineDecoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkIndicator(org.apache.mina.core.buffer.IoBuffer in)
checkIndicatorprotected boolean
doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
Charset
getCharset()
getCharsetString
getMultilineIndicator()
getMultilineIndicatorvoid
setCharset(Charset charset)
setCharset
-
-
-
Field Detail
-
CURRENT_RESPONSE
protected String CURRENT_RESPONSE
-
-
Method Detail
-
doDecode
protected boolean doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws Exception
- Specified by:
doDecode
in classorg.apache.mina.filter.codec.CumulativeProtocolDecoder
- Throws:
Exception
-
checkIndicator
protected boolean checkIndicator(org.apache.mina.core.buffer.IoBuffer in) throws CharacterCodingException
checkIndicator
- Parameters:
in
- aIoBuffer
object.- Returns:
- a boolean.
- Throws:
CharacterCodingException
- if any.
-
setCharset
public void setCharset(Charset charset)
setCharset
- Parameters:
charset
- aCharset
object.
-
-