java - Apache camel netty custom encoder and decoder sample -
apache camel netty tcp component doc(http://camel.apache.org/netty.html) says,
encoder
a custom channelhandler class can used perform special marshalling of outbound payloads. must override org.jboss.netty.channel.channeldownstreamhandler.
decoder
a custom channelhandler class can used perform special marshalling of inbound payloads. must override org.jboss.netty.channel.channelupstreamhandler.
could please point me example on how/what in overriding class. want custom tcp encoder/decoder read/write bytes.
this class , it's super class encoders , can use example: org.jboss.netty.handler.codec.string.stringencoder
there other classes used in examples on netty page "using multiple codecs" heading can @ source code see how use interface.
failing it's best @ netty project , @ unit tests encoders.
Comments
Post a Comment