use of com.emc.atmos.api.jersey.AtmosApiClient in project camel by apache.
the class AtmosConfiguration method createClient.
/**
* Obtain a new instance of AtmosApi client and store it in configuration.
*
* @throws AtmosException
*/
public void createClient() throws AtmosException {
AtmosConfig config = null;
try {
config = new AtmosConfig(fullTokenId, secretKey, new URI(uri));
} catch (URISyntaxException use) {
throw new AtmosException("wrong syntax for Atmos URI!", use);
}
if (!enableSslValidation) {
config.setDisableSslValidation(true);
}
AtmosApi atmosclient = new AtmosApiClient(config);
this.client = atmosclient;
}
Aggregations