I’m attempting to use HttpPostRequestDecoder from Netty Extension 1.1.9 with Netty 3.3.1. I get class cast issues, however, when trying to get from the built-in Netty HttpRequest to what is used in the org.jboss.netty.handler.codec.http2 package.
What is the correct way to go about this?
org.jboss.netty.handler.codec.http.DefaultHttpRequest request;
HttpPostRequestDecoder decoder = new HttpPostRequestDecoder((org.jboss.netty.handler.codec.http.HttpRequest) request);
I never used the netty extensions but from a quick look at the source it looks like you need to be sure to only use the http codec stuff which is shipped with it. From your description it seems like you try to mix the http codec stuff that comes with netty and the one that comes with netty extension.