hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: How to over come the deprication API problem?
Date Sat, 25 Feb 2006 18:14:23 GMT
Hi Danniel,

> I simply extended "AuthSSLProtocolSocketFactory" from
> "ProtocolSocketFactory" instead of "SecureProtocolSocketFactory" and it
> worked for me...

Well, if your socket factory is supposed to create secure sockets, then
it should be derived from SecureProtocolSocketFactory. Otherwise, though
it may seem to work, there will sooner or later be a problem. More
specifically, your code will break as soon as a proxy comes into play.

Folks, this is just a deprecation warning! Ignore it or put in a cast so
that the appropriate constructor is chosen by the compiler. We left the
stupid method in because we didn't want to break binary compatibility.
It still works, and when it's gone your code will be source compatible
because the correct constructor will match.



To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

View raw message