users@jersey.java.net

Using Apache HttpClient with Jersey, with SSL protocol factory

From: Mark Petrovic <mark_at_petrovic.org>
Date: Thu, 17 Sep 2009 18:41:52 -0700

Hi.

I have a need to create a Jersey client that is based on the Apache
HttpClient. Furthermore, I need to be able to provide a custom SSL
protocol factory so that this http client can pass client SSL
authentication.

I know I've seen sample code that shows how to use HttpClient in a
Jersey client app, but I can't seem to find it at the moment. Once I
have that client, I'm hoping I can wedge something like this SSL
protocol factory onto it:

http://www.jdocs.com/httpclient/3.0.1/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocketFactory.html

Thanks much.


--
Mark Petrovic
mark_at_petrovic.org
http://www.petrovic.org