import javax.ws.rs.client.Client;
import org.jboss.resteasy.client.jaxrs.ResteasyClient;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
Client client = new ResteasyClientBuilder()
.establishConnectionTimeout(100, TimeUnit.SECONDS)
.socketTimeout(2, TimeUnit.SECONDS)
.build();
ResteasyClientBuilder is basically an abstraction for creating Clients which uses Apache Http Client under the covers. That's it.