private final Client client;
private final String baseUrl;
public ResourceInvocationHandler( String serviceUrl, Object... customProviders ) {
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
registerProviders( clientBuilder, customProviders );
Configuration configuration = clientBuilder.sslContext( ClientHelper.createSSLContext() )
.hostnameVerifier( ClientHelper.createHostNameVerifier() )
.getConfiguration();
this.client = ClientBuilder.newClient( configuration );
this.baseUrl = serviceUrl;
}