You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/10/04 03:49:52 UTC
[jira] Reopened: (CAMEL-877) Access HttpRequest Params from
exchange.in.header
[ https://issues.apache.org/activemq/browse/CAMEL-877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reopened CAMEL-877:
--------------------------------
Assignee: Willem Jiang (was: Claus Ibsen)
If the request's method is POST, request.getParameterNames() will parse the post form data.
So we just only set the parameterNames() when we get the GET request.
> 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: Willem Jiang
> 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.