Re: Call "ClientBuilder.newBuilder().newClient()" or "ClientBuilder.newClient()"?

2017-03-09 Thread Sergey Beryozkin
Starting with the newBuilder is more flexible, you can add SSL configuration, etc Cheers, Sergey On 09/03/17 20:00, KARR, DAVID wrote: At http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-JAX-RS2.0ClientAPI I saw the following code sample: - Client client =

Call "ClientBuilder.newBuilder().newClient()" or "ClientBuilder.newClient()"?

2017-03-09 Thread KARR, DAVID
At http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-JAX-RS2.0ClientAPI I saw the following code sample: - Client client = ClientBuilder.newBuilder().newClient(); WebTarget target = client.target("http://localhost:8080/rs;); target =