[
https://issues.apache.org/activemq/browse/CAMEL-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45351#action_45351
]
Claus Ibsen commented on CAMEL-877:
-----------------------------------
I am behind a poor firewall at the time so cant commit the code, will do later
when at home.
> 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-http, camel-jetty
> Affects Versions: 1.4.0
> Environment: Windows XP, Java 1.6.0_07
> Reporter: A. Steven Anderson
> Assignee: Claus Ibsen
> Fix For: 1.5.0
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> 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.