On Mon, Dec 14, 2009 at 8:30 PM, ychawla <premiergenerat...@yahoo.com> wrote:
>
> Is it possible to do this same 'hookup' using the Spring DSL.  I am not sure
> if it is possible to specify this in Spring:
>
> HttpComponent httpComponent = (HttpComponent)
> getContext().getComponent("http");
> httpComponent.setHttpClientConfigurer(new MyHttpClientConfigurer());
>

Yeah see the  - Setting MaxConnectionsPerHost - example from this page
http://camel.apache.org/http


>
> bwhite wrote:
>>
>> Thanks for the info Willem, that's just what I needed.
>>
>> Here's a little more information for anyone who may end up following in my
>> footsteps:
>>
>> Create a class that implements HttpClientConfigurer, and registers https
>> protocol providing a keystore or truststore per Willem's example below.
>> Then, from your camel route builder class you can hook it up like so:
>>
>> HttpComponent httpComponent = (HttpComponent)
>> getContext().getComponent("http");
>> httpComponent.setHttpClientConfigurer(new MyHttpClientConfigurer());
>>
>> Bryan
>>
>>
>> willem.jiang wrote:
>>>
>>>
>>> If you just wan to specify the keystore and truststore you can do int in
>>> your HttpClientConfigurer.
>>>
>>> Protocol authhttps = new Protocol("https",
>>> new AuthSSLProtocolSocketFactory(
>>> new URL("file:my.keystore"), "mypassword",
>>> new URL("file:my.truststore"), "mypassword"), 443);
>>> Protocol.registerProtocol("https", authhttps);
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Re%3A-HTTPS-authentication-setup-using-camel-http-tp26190394p26779969.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to