@ChannelHandler.Sharable
public class HttpRequestHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Constructor and Description |
---|
HttpRequestHandler(NettyServerHelper serverHelper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
static byte[] |
longToHex(long l)
Convert a long value to hex byte array.
|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent) |
public HttpRequestHandler(NettyServerHelper serverHelper)
serverHelper
- The server helper.public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws java.lang.Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
java.lang.Exception
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent) throws java.lang.Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
java.lang.Exception
public static byte[] longToHex(long l)
l
- - value to be convertedCopyright © 2005-2012. All Rights Reserved.