Hey everyone!

I’m using a custom text based protocol that uses line delimiters to indicate
message boundaries. Mina 2.0.0-M3 comes with a TextLineCodec that does the
splitting for you, resulting in your handler receiving String objects,
instead of IoBuffers.

Trouble starts however when i try to add another filter to the chain. This
filter should receive the String objects from the TextLineCodec, but the
ProtocolDecoder interface  demands a decode method with parameters
(IoSession, IoBuffer, ProtocolDecoderOutput). Mina can not call this decoder
using the String result from the TextLineCodec so it skips it.... resulting
in my handler receiving String objects instead of higher level objects from
my own decoder.

The API does not seem to support what i want... What am i doing wrong?

Help would be greatly appreciated, and i will write a blog entry on the
solution to this problem.

Geert Schuring
The Netherlands.

________________________________________________
Message sent using UebiMiau 2.7.10


Reply via email to