camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Camel Jetty Endpoint query
Date Wed, 27 Jun 2012 02:24:39 GMT
Hi,

You can access the request object by looking up the message header with 
the name Exchange.HTTP_SERVLET_REQUEST like this in your processor

Message in = exchange.getIn();
Request request = (Request)in.getHeader(Exchange.HTTP_SERVLET_REQUEST);


On 6/26/12 10:08 PM, Navengit wrote:
> I have a Java Struts 1.1 based application which has a JSP which is sending
> an HTTP request to Jetty endpoint in my Camel application.
> I have an object set in  request.setAttribute.
> How to get this object in my camel processor?
> I am able to get the request parameters but not request attributes.
> I have tried both GET and POST but in vein.
> I will appreciate any reply on the same.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Jetty-Endpoint-query-tp5715119.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


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



Mime
View raw message