All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bazaarvoice.emodb.blob.client.BlobStoreClientFactory Maven / Gradle / Ivy

There is a newer version: 6.5.190
Show newest version
package com.bazaarvoice.emodb.blob.client;

import com.bazaarvoice.emodb.client.Jersey2EmoClient;
import org.glassfish.jersey.client.ClientProperties;

import javax.ws.rs.client.Client;
import java.net.URI;


public class BlobStoreClientFactory extends AbstractBlobStoreClientFactory {

    /**
     * Connects to the Blob Store using the specified Jersey client.  If you're using Dropwizard, use this
     * constructor and pass the Dropwizard-constructed Jersey client.
     */
    public static BlobStoreClientFactory forClusterAndHttpClient(Client client, URI endpoint) {
        client.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
        return new BlobStoreClientFactory(client, endpoint);
    }

    private BlobStoreClientFactory(Client jerseyClient, URI endpoint) {
        super(new Jersey2EmoClient(jerseyClient), endpoint);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy