camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Jetty component and HTTP parameter
Date Wed, 01 Jul 2009 14:00:33 GMT
See unit test: JettyHttpGetWithParamAsExchangeHeaderTest

from this link
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/


On Wed, Jul 1, 2009 at 3:56 PM, Claus Ibsen<claus.ibsen@gmail.com> wrote:
> On Wed, Jul 1, 2009 at 11:51 AM, SwenVogel<swen.vogel@ypsystems.de> wrote:
>>
>> Hi,
>>
>> i have read the documentation for jetty component and found the following:
>>
>> For instance of a client request with http://myserver/myserver?orderid=123
>> then the exchange will contain a header named orderid with the value 123
>>
>> Ok, now i have the following URL: http://localhost/test?para1=value1
>> and i extract the parameter:
>>
>> String value1= exchange.getIn().getHeader("para1", String.class);
>>
>> I dont know wheter this is the right way, but value1 is equal null!
>>
>> There is a header named CamelHttpQuery=para1=value1
> I would suspect it should work like that. What version of Camel are you using?
>
>
>>
>> --
>> View this message in context: http://www.nabble.com/Jetty-component-and-HTTP-parameter-tp24287116p24287116.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message