@ChannelHandler.Sharable
public class HttpConnectRelayingHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Constructor and Description |
---|
HttpConnectRelayingHandler(org.jboss.netty.channel.Channel relayChannel,
org.jboss.netty.channel.group.ChannelGroup channelGroup)
Creates a new
HttpConnectRelayingHandler with the specified
connection to relay to.. |
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 cse) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
public HttpConnectRelayingHandler(org.jboss.netty.channel.Channel relayChannel, org.jboss.netty.channel.group.ChannelGroup channelGroup)
HttpConnectRelayingHandler
with the specified
connection to relay to..relayChannel
- The channel to relay messages to.channelGroup
- The group of channels to close on shutdown.public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent cse) throws Exception
channelOpen
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
Copyright © 2009-2012 LittleShoot. All Rights Reserved.