I'm likely going to be implementing a REST service call using ClientBuilder, 
and it will require basic auth.  I'm intending to cache the Client object, if I 
can be sure it's thread-safe.

I'm having trouble getting a clear picture on some of these details from the 
main docs.  I found the section about using ClientBuilder 
(http://cxf.apache.org/docs/jax-rs-client-api.html), but that doesn't mention 
auth.  When I searched for "basic" on the same page, I found some references to 
doing this with a WebClient, but I'm not sure of the relevance of that.  I also 
can't find a statement about thread-safety.  I understand that Client is an 
interface, but CXF is providing an implementation, so I would assume it's 
possible to determine that.

I note that links to "JAXRSClientFactoryBean" on that page get a 404.  I have a 
feeling that class is relevant to this.  I also don't see this class in the 
standard Javadoc set.

Reply via email to