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.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.SimpleChannelUpstreamHandlerExceptionpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent exceptionEvent)
throws Exception
exceptionCaught in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent)
throws Exception
messageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected 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 messageApache Camel