org.apache.mina.filter.codec
Interface ProtocolDecoder
- CumulativeProtocolDecoder, ObjectSerializationDecoder, ProtocolDecoderAdapter, SynchronizedProtocolDecoder, TextLineDecoder
public interface ProtocolDecoder
dispose
public void dispose(IoSession session)
throws Exception
Releases all resources related with this decoder.
finishDecode
public void finishDecode(IoSession session,
ProtocolDecoderOutput out)
throws Exception
Invoked when the specified
session is closed. This method is useful
when you deal with the protocol which doesn't specify the length of a message
such as HTTP response without
content-length header. Implement this
method to process the remaining data that
decode(IoSession,ByteBuffer,ProtocolDecoderOutput)
method didn't process completely.