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

okhttp3.OkHttpClientFactory Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package okhttp3;

import com.github.zhkl0228.impersonator.ImpersonatorApi;

import javax.net.ssl.KeyManager;
import javax.net.ssl.TrustManager;

public abstract class OkHttpClientFactory {

    public static OkHttpClientFactory create(ImpersonatorApi api) {
        return create(api, null);
    }

    public static OkHttpClientFactory create(ImpersonatorApi api, OkHttpClientBuilderFactory okHttpClientBuilderFactory) {
        return new DefaultHttpClientFactory(api, okHttpClientBuilderFactory);
    }

    public abstract OkHttpClient newHttpClient();

    public abstract OkHttpClient newHttpClient(SocketFactory socketFactory);

    public abstract OkHttpClient newHttpClient(String userAgent);

    public abstract OkHttpClient newHttpClient(KeyManager[] km, TrustManager[] tm, String userAgent);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy