what-the-bank/sources/okhttp3/internal/proxy/NullProxySelector.java

33 lines
965 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.internal.proxy;
import java.io.IOException;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URI;
import java.util.Collections;
import java.util.List;
import o.C14957gcv;
/* loaded from: classes.dex */
public final class NullProxySelector extends ProxySelector {
public static final NullProxySelector INSTANCE = new NullProxySelector();
@Override // java.net.ProxySelector
public final void connectFailed(URI uri, SocketAddress socketAddress, IOException iOException) {
}
private NullProxySelector() {
}
@Override // java.net.ProxySelector
public final List<Proxy> select(URI uri) {
if (uri == null) {
throw new IllegalArgumentException("uri must not be null".toString());
}
List<Proxy> singletonList = Collections.singletonList(Proxy.NO_PROXY);
C14957gcv.c(singletonList, "");
return singletonList;
}
}