You also use  ClientBuilderImpl.newClient();

Impl is not needed, but besides that you need to do:

ClientBuilder builder = ClientBuilder.newBuilder();
and then set builder properties and create a client

Cheers, Sergey


On 13/04/15 21:57, Sergey Beryozkin wrote:
You do not use it correctly though,

HttpUrlConnection.setDefaultHostnameVerifier is not part of JAX-RS 2.0 API.

Can you set a verifier on ClientBuilder ? That should do it...

Cheers, Sergey




On 13/04/15 17:44, smq wrote:
The links to the example code all point to pre-CXF3.0 client.  I am
using CXF
3.0.4 which implements jax-rs 2.0.  The Client I use is
javax.ws.rs.client.Client.  So the methods in the example do not apply.



--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-3-0-4-client-how-to-disable-CN-checking-tp5755938p5756007.html

Sent from the cxf-user mailing list archive at Nabble.com.



Reply via email to