Access HttpRequest Params from exchange.in.header
-------------------------------------------------

                 Key: CAMEL-877
                 URL: https://issues.apache.org/activemq/browse/CAMEL-877
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-jetty
    Affects Versions: 1.5.0
         Environment: Windows XP, Java 1.6.0_07
            Reporter: A. Steven Anderson
             Fix For: 1.5.0


Currently, you can only get the http request parameters by using a 
getHttpRequest() on the HttpExchange and thus you need java code and can't do 
it from the Spring XML configuration using simple expression language. 

e.g. if the request is http://localhost:8080/test?x=1, then the following route 
should result in 1 being returned in the body of the html response:

<route>
   <from uri="jetty:http://localhost:8080/test"; />
   <setBody>
      <simple><html><body>${in.header.x}</body></html></simple>
   </setBody>
   <to uri="mock:end"/>
</route> 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to