Re: [hawtdispatch] Chaining Codec's

24 views
Skip to first unread message

Hiram Chirino

unread,
Dec 12, 2012, 2:30:52 PM12/12/12
to hawtdispatch
yeah.. I've done it in the past with an SSL codec [1], takes SSL decodes it and passes it down to the next codec:


[1] https://github.com/fusesource/hawtdispatch/blob/master/hawtdispatch-transport/src/main/java/org/fusesource/hawtdispatch/transport/SslProtocolCodec.java


On Wed, Dec 12, 2012 at 1:03 PM, catshow <ga...@dynafocus.com> wrote:
Is there an example of chaining together codecs?  For example i am opening an https connection that responds back with Transfer-Encoding:chunked Content-Type:json.  I want a codec that processes the http response, then a codec to process the json. 

Thanks



--

Hiram Chirino

Engineering | Red Hat, Inc.

hchi...@redhat.com | fusesource.com | redhat.com

skype: hiramchirino | twitter: @hiramchirino

blog: Hiram Chirino's Bit Mojo


catshow

unread,
Dec 13, 2012, 9:43:08 AM12/13/12
to hawtdi...@googlegroups.com, hi...@hiramchirino.com
Hi Hiram, thanks for pointing me to the sample.  I really don't understand how it works.  In my scenario i build a HTTP Response object which I want passed to the next codec.  Would I need to set up the transport like the SslProto... has in the initNext routine?  What calls getNext()?

Thanks
Reply all
Reply to author
Forward
0 new messages