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: HTTP Endpoint construction in CamelSpringTest
Date Thu, 24 Jan 2013 20:51:17 GMT
On Thu, Jan 24, 2013 at 4:56 PM, Zemin Hu <zemin_hu@hotmail.com> wrote:
> You are right. I was trying too hard to use CamelSpringTestSupport, thinking
> it might be simpler to start my route and to test it together. I am wrong.
> This CamelSpringTestSupport can do other tests, say file in Ibsen's book,
> but not for servlet.
> I am going to quit using CamelSpringTestSupport, just go straight with
> HttpUnit or HttpClient to do this kind of test. Besides, I also found it's
> hard to specify request method "GET/POST/PUT/DELETE" with ProducerTemplate.
>

The HTTP components of Camel often has a header that can control to
use GET / POST / etc.
So for that you need to send both body + headers with the producer template.



>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/HTTP-Endpoint-construction-in-CamelSpringTest-tp5726090p5726170.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message