On Fri, Mar 27, 2009 at 5:27 PM, pevgen <[email protected]> wrote:
>
> Thank you, Claus
>
> And can't i found GET query string in http-Exchange ? only as param=value in
> headers ?
I think you can get access to the HttpRequest object like this

HttpServletRequest req = exchange.getIn().getBody(HttpServletRequest.class);

and from this you can get access to the query string and whatelse you
can get from http request

See the jetty component documentation

>
>
>
> Claus Ibsen-2 wrote:
>>
>> On Fri, Mar 27, 2009 at 3:46 PM, pevgen <[email protected]> wrote:
>>>
>>> Hello.
>>>
>>> I have a jetty-endpoint.
>>> for example :
>>> <from uri="jetty:http://localhost:1234/base/"/>
>>> <process uri="myProcessor"/>
>>>
>>> Can i get a query-string in the "myProcesor", if i send a message by
>>> method
>>> GET ? If i use the method POST, it work fine. But a message body have
>>> null
>>> inside, if i use the method GET.
>> Yeah with GET there are no HTTP Body. All data is in the GET query string
>>
>> With POST on the other hand the data is in the HTTP body and thus the
>> IN body contains the POST'ed data.
>>
>>
>>
>>>
>>> I use Camel 2.0-M1.
>>>
>>> Thank you,
>>> Evgeny
>>> --
>>> View this message in context:
>>> http://www.nabble.com/jetty-component-%3A-method-GET-tp22743126p22743126.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
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/jetty-component-%3A-method-GET-tp22743126p22745135.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

Reply via email to