okhttp3.OkHttpClientFactory Maven / Gradle / Ivy
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);
}