Roland Weber wrote:
Consider this:

SecureProtocolSocketFactory spsf = ...;
... = new Protocol("myscheme", spsf, 666);

There is nothing in the SecureProtocolSocketFactory interface that should be called by the user.
So the user should write:


ProtocolSocketFactory spsf = ...;
 ... = new Protocol("myscheme", spsf, 666);


Of course if you write your own SPSF this may lead to code like this:


MySecureProtocolSocketFactory foo = MySecureProtocolSocketFactory();
f.callsomeMethod(...);
... = new Protocol("https", (ProtocolSocketFactory)foo, 443);

or even:

ProtocolSocketFactory foo = MySecureProtocolSocketFactory();
((MySecureProtocolSocketFactory)f).callsomeMethod(...);
... = new Protocol("https", foo, 443);


Odi





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to