On May 1, 2006, at 3:12 PM, Samuel Doyle wrote:
This is interesting. In my implementation I just have
one decoder. So if I needed I could add multiple
decoders and in my first decoder when I
ProtocolDecoderOutput.write() my decoded packet it
will be sent to next decoder and not my
IoHandlerAdapter. Is this correct?

No. The DemuxingProtocolCodecFactory just calls multiple decoders in serial until it finds one that can decode the data.

If you want to chain decoders, that is, have the output from decoder A be the input for decoder B, you will need to make your own variant of the ProtocolCodecFilter, since the one in MINA does not allow it to be used multiple times in a chain, nor does it attempt to decode non-bytebuffer input.
-pete

--
[EMAIL PROTECTED] - http://fotap.org/~osi


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to