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

com.imperva.shcf4j.helpers.NOPServiceProvider Maven / Gradle / Ivy

Go to download

The Simple HTTP Client Facade for Java (SHCF4J) serves as a simple facade or abstraction for various HTTP client frameworks (e.g. java.net.HttpURLConnection, Apache HttpClient, etc.) allowing the end user to plug in the desired HTTP client framework at deployment time.

The newest version!
package com.imperva.shcf4j.helpers;

import com.imperva.shcf4j.AsyncHttpClientBuilder;
import com.imperva.shcf4j.SyncHttpClientBuilder;
import com.imperva.shcf4j.spi.SHC4JServiceProvider;

public class NOPServiceProvider implements SHC4JServiceProvider {

    public static final SHC4JServiceProvider INSTANCE = new NOPServiceProvider();


    @Override
    public SyncHttpClientBuilder getHttpClientBuilder() {
        return NOPSyncHttpClientBuilder.INSTANCE;
    }

    @Override
    public AsyncHttpClientBuilder getHttpAsyncClientBuilder() {
        return NOPAsyncHttpClientBuilder.INSTANCE;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy