Hi, as far as I recall, the requests coming via Camel Servlet did not have HttpServletRequest objects set at some point of time, which might explain why headers are empty,

is 'request' initialized in your case or is it null ?

May be you should try the latest Camel ?

Cheers, Sergey
On 10/10/13 19:28, Amit wrote:
I am sending request to below route with "Content-Type: audio/amr" but i am
unable  to access Content-Type in myService.



<route xmlns="http://camel.apache.org/schema/spring"; trace="true">
   <from uri="servlet:///myServlet?matchOnUriPrefix=true" />
   <to uri="cxfbean:myService" />
</route>

Service with method
@POST
        @Path("/{package}/{service}")
        public Response processRequest(@Context UriInfo uriInfo,
                        @Context HttpServletRequest request,
                        @Context HttpHeaders headers)

{
MediaType mimeType = headers.getMediaType();






}




--
View this message in context: 
http://camel.465427.n5.nabble.com/CFX-Bean-headers-access-Issue-tp5741312.html
Sent from the Camel - Users mailing list archive at Nabble.com.



Reply via email to