Trustin Lee a écrit :
1) Please implement a protocol codec for the TCP/IP case.
2) Use a HTTP codec that accepts IoBuffer (or ByteBuffer) as a message
content. (i.e. HTTP body)
3) There's a class called 'ProtocolCodecSession' which enables you to
use existing codec (the TCP/IP codec in this case) without inserting
it wrapped with ProtocolCodecFilter.  Instead, you will be able to
make the two codecs work together by creating a simple filter that
calls the TCP/IP codec for the HTTP message.

The following is the illustration of my explanation above:

IoService --> ProtocolCodecFilter(HTTP codec inside) -->
YourHTTPContentTransformingFilter(TCP/IP codec inside with help of
ProtocolCodecSession) --> IoHandler

Thanks for the input Trustin.
I'll try this approach in my prototype.

regards,
jeff

Reply via email to