jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] security and a client builder API

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Wed, 9 Jan 2013 11:26:55 -0500

On Jan 8, 2013, at 11:12 AM, Bill Burke <bburke_at_redhat.com> wrote:

>
> https://github.com/resteasy/Resteasy/blob/master/jaxrs/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/AbstractClientBuilder.java

 I'm certainly not an SSL expert, but overall it looks good to me. Seems to address keystores, SSL context, etc. Some questions:

 (1) Are there defaults for all these builder methods if not called? Or will build() throw an exception if the building process is somehow incomplete?

 (2) What's the rationale/advantage of supporting per-hostname connection pools here?

 (3) Is there a relationship between this builder and Resteasy's implementation of ClientFactory?

-- Santiago