Hello,

in Camel 2 and Jetty I used to get my hands on HttpServletRequest by

            HttpMessage http = exchange.getIn(HttpMessage.class);
            HttpServletRequest request = http.getRequest();

, but now I'm migrating to 4.0.1 and platform-http (currently camel-platform-http-main), and now I'm getting null instead of the HttpMessage.

Is it related to the note in  the Camel 4 migration guide - " And all |HttpMessage| has been changed to generic |Message| types"? What is the correct method of getting the raw HttpServletRequest and its internals like headers, sessions and cookies, if there is any? Can't find a documented way of doing this, for example, by calling `HttpServletRequest request = http.getBody(HttpServletRequest.class);`.


Thank you!

-fedd

Reply via email to