public class HttpRelayingHandler extends org.jboss.netty.channel.SimpleChannelUpstreamHandler implements InterestOpsListener
Constructor and Description |
---|
HttpRelayingHandler(org.jboss.netty.channel.Channel browserToProxyChannel,
org.jboss.netty.channel.group.ChannelGroup channelGroup,
HttpFilter filter,
RelayListener relayListener,
String hostAndPort)
Creates a new
HttpRelayingHandler with the specified connection
to the browser. |
HttpRelayingHandler(org.jboss.netty.channel.Channel browserToProxyChannel,
org.jboss.netty.channel.group.ChannelGroup channelGroup,
RelayListener relayListener,
String hostAndPort)
Creates a new
HttpRelayingHandler with the specified connection
to the browser. |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent cse) |
void |
channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent cse) |
void |
channelWritable(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 me) |
void |
requestEncoded(org.jboss.netty.handler.codec.http.HttpRequest request)
Adds this HTTP request.
|
public HttpRelayingHandler(org.jboss.netty.channel.Channel browserToProxyChannel, org.jboss.netty.channel.group.ChannelGroup channelGroup, RelayListener relayListener, String hostAndPort)
HttpRelayingHandler
with the specified connection
to the browser.browserToProxyChannel
- The browser connection.channelGroup
- Keeps track of channels to close on shutdown.relayListener
- The relay listener.hostAndPort
- Host and port we're relaying to.public HttpRelayingHandler(org.jboss.netty.channel.Channel browserToProxyChannel, org.jboss.netty.channel.group.ChannelGroup channelGroup, HttpFilter filter, RelayListener relayListener, String hostAndPort)
HttpRelayingHandler
with the specified connection
to the browser.browserToProxyChannel
- The browser connection.channelGroup
- Keeps track of channels to close on shutdown.filter
- The HTTP filter.relayListener
- The relay listener.hostAndPort
- Host and port we're relaying to.public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent me) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent cse) throws Exception
channelInterestChanged
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelConnected
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
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void requestEncoded(org.jboss.netty.handler.codec.http.HttpRequest request)
request
- The HTTP request to add.public void channelWritable(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent cse)
channelWritable
in interface InterestOpsListener
Copyright © 2009–2016 LittleShoot. All rights reserved.