ChannelBuffer to HttpRequest - using HttpRequestDecoder
Renjith T
renjith.tom85 at gmail.com
Wed Aug 3 15:36:04 EDT 2011
I am working on a handler ( from SimpleChannelUpstreamHandler), that
gives the message in messageRecieved as a ChannelBuffer .
public void messageReceived(ChannelHandlerContext ctx, final
MessageEvent e)
throws Exception {
final ChannelBuffer request = (ChannelBuffer) e.getMessage();
... // do something
}
I would like to convert this ChannelBuffer to a HttpRequest, through
some means, if possible.
( pipeline.addLast("decoder", new HttpRequestDecoder()); , in the
pipeline factory does not work since I need the raw ChannelBuffer as
mentioned above , for some other downstream processing as well).
How can I achieve the above ?
More information about the netty-users
mailing list