Orphan classes in java-support

Ian Young ian at iay.org.uk
Thu Jan 16 07:27:20 EST 2014


On 16 Jan 2014, at 02:41, Brent Putman <putmanb at georgetown.edu> wrote:

> Yes.  And amongst other reasons, that's because Apache HttpClient is
> moving to a model (so they say) where you will no longer be able to just
> 'new' an instance of HttpClient (e.g. DefaultHttpClient in the past). 
> You must use their builder to create instances.  And theirs aren't very
> Spring-friendly - they're skewing more towards a fluent-style API.  So
> going forward, perhaps even more so than now, we'll need some types of
> HttpClient builder/support/etc classes. (unless they totally switch
> directions again...)

That's interesting. I know Chad looked at a more fluent-style API, or at least the method chaining part of it, for some of our stuff (e.g., see https://issues.shibboleth.net/jira/browse/MDA-72). I'm not a  big fan of the style myself, I just haven't got up the courage to start closing Chad's issues ;-)

For HttpClient, I found this:

	http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fluent.html

That seems to imply it's an optional facade layer for the simplest use cases, though, not a general replacement. Is there some more information available?

	-- Ian



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5943 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/dev/attachments/20140116/1cc85255/attachment-0001.bin 


More information about the dev mailing list