org.apache.camel.component.netty.http.handlers
Class HttpClientChannelHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.apache.camel.component.netty.handlers.ClientChannelHandler
          extended by org.apache.camel.component.netty.http.handlers.HttpClientChannelHandler
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class HttpClientChannelHandler
extends org.apache.camel.component.netty.handlers.ClientChannelHandler

Netty HTTP ClientChannelHandler that handles the response combing back from thhe HTTP server, called by this client.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
HttpClientChannelHandler(NettyHttpProducer producer)
           
 
Method Summary
protected  org.apache.camel.Message getResponseMessage(org.apache.camel.Exchange exchange, org.jboss.netty.channel.MessageEvent messageEvent)
           
 void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent)
           
 
Methods inherited from class org.apache.camel.component.netty.handlers.ClientChannelHandler
channelClosed, channelOpen, exceptionCaught
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelConnected, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientChannelHandler

public HttpClientChannelHandler(NettyHttpProducer producer)
Method Detail

messageReceived

public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
                            org.jboss.netty.channel.MessageEvent messageEvent)
                     throws Exception
Overrides:
messageReceived in class org.apache.camel.component.netty.handlers.ClientChannelHandler
Throws:
Exception

getResponseMessage

protected org.apache.camel.Message getResponseMessage(org.apache.camel.Exchange exchange,
                                                      org.jboss.netty.channel.MessageEvent messageEvent)
                                               throws Exception
Overrides:
getResponseMessage in class org.apache.camel.component.netty.handlers.ClientChannelHandler
Throws:
Exception


Apache Camel