public class ClientChannelHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Constructor and Description |
---|
ClientChannelHandler(NettyProducer producer) |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent channelStateEvent) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent exceptionEvent) |
protected org.apache.camel.Exchange |
getExchange(org.jboss.netty.channel.ChannelHandlerContext ctx) |
protected org.apache.camel.Message |
getResponseMessage(org.apache.camel.Exchange exchange,
org.jboss.netty.channel.MessageEvent messageEvent)
Gets the Camel
Message to use as the message to be set on the current Exchange when
we have received a reply message. |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent) |
public ClientChannelHandler(NettyProducer producer)
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent channelStateEvent) throws Exception
channelOpen
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent exceptionEvent) throws Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelClosed
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
protected org.apache.camel.Message getResponseMessage(org.apache.camel.Exchange exchange, org.jboss.netty.channel.MessageEvent messageEvent) throws Exception
Message
to use as the message to be set on the current Exchange
when
we have received a reply message.
exchange
- the current exchangemessageEvent
- the incoming event which has the response message from Netty.Message
to set on the current Exchange
as the response message.Exception
- is thrown if error getting the response messageprotected org.apache.camel.Exchange getExchange(org.jboss.netty.channel.ChannelHandlerContext ctx)
Apache Camel