Search in sources :

Example 1 with AtmosApiClient

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;
}
Also used : AtmosApiClient(com.emc.atmos.api.jersey.AtmosApiClient) AtmosException(org.apache.camel.component.atmos.util.AtmosException) URISyntaxException(java.net.URISyntaxException) AtmosApi(com.emc.atmos.api.AtmosApi) URI(java.net.URI) AtmosConfig(com.emc.atmos.api.AtmosConfig)

Aggregations

AtmosApi (com.emc.atmos.api.AtmosApi)1 AtmosConfig (com.emc.atmos.api.AtmosConfig)1 AtmosApiClient (com.emc.atmos.api.jersey.AtmosApiClient)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 AtmosException (org.apache.camel.component.atmos.util.AtmosException)1