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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -