hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: http client and SSLContext.getDefault
Date Thu, 10 Jan 2013 12:55:43 GMT
On Thu, Jan 10, 2013 at 7:55 AM, Gary Gregory <garydgregory@gmail.com>wrote:

> My preference would be to make Java 6 the minimum requirement.
>

Start with 4.3 I should have added.

Gary

>
> Gary
>
>
> On Thu, Jan 10, 2013 at 7:52 AM, Alexey Serba <aserba@gmail.com> wrote:
>
>> Hi,
>>
>> It seems that http client (at least 4.1.3) does not honor
>> SSLContext.getDefault, i.e. does not pickup SSLContext configured
>> using SSLContext.setDefault. The problem is that I want to override
>> default SSLContext at a runtime and do not have control over all
>> httpclient usages, i.e. can not instrument all http client instances
>> using "getConnectionManager().getSchemeRegistry().register(scheme)"
>> spell. I was thinking that httpclient should use default SSLContext by
>> default, but apparently it's not. I've found HTTPCLIENT-789 and it
>> says that the reason is that SSLContext.getDefault() is Java 6/7 only.
>> I'm wondering if it makes sense to use reflection here and honor
>> default SSLContext on Java 6/7 platforms. Any opinions?
>>
>> Thanks in advance,
>> Alexey
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message