You can't use the HttpServletRequest to get the request parameter map, as the HttpServletRequest input stream is consumed by camel if the request content type is "application/x-www-form-urlencoded".

It not a bug, you can consider that the HttpServletRequest's input stream can't be consumed twice.

On 10/28/10 6:45 PM, Sebastian Münz wrote:
Okay, i get it!


By converting the Exchange-Body I get the HTTP_QUERY String. So i get
the information which parameters are sent.

String exchangeBody = httpExchange.getIn().getBody(String.class);

Result: property1=one&property2=two&property3=three&property4=four


Nonetheless I think the parameter map should be in the
HttpServletRequest after convertion! Isn't it a bug?

Best regards - Sebastian



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to