正在查看: Mint v5.7.3 应用的 j.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 j.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package hi;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.SocketAddress;
import java.net.SocketException;
import java.net.URI;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import kotlin.Metadata;
import kotlin.collections.r;
import kotlin.collections.s;
import kotlin.collections.x;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.m;
import okhttp3.Address;
import okhttp3.Call;
import okhttp3.EventListener;
import okhttp3.HttpUrl;
import okhttp3.Route;
@Metadata(d1 = {"\u0000l\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u0000 *2\u00020\u0001:\u0002\f\tB'\u0012\u0006\u0010\u0011\u001a\u00020\u000f\u0012\u0006\u0010\u0014\u001a\u00020\u0012\u0012\u0006\u0010\u0017\u001a\u00020\u0015\u0012\u0006\u0010\u001a\u001a\u00020\u0018¢\u0006\u0004\b(\u0010)J\u001a\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0002J\b\u0010\t\u001a\u00020\bH\u0002J\b\u0010\n\u001a\u00020\u0004H\u0002J\u0010\u0010\u000b\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\t\u0010\f\u001a\u00020\bH\u0086\u0002J\t\u0010\u000e\u001a\u00020\rH\u0086\u0002R\u0014\u0010\u0011\u001a\u00020\u000f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\f\u0010\u0010R\u0014\u0010\u0014\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0013R\u0014\u0010\u0017\u001a\u00020\u00158\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000e\u0010\u0016R\u0014\u0010\u001a\u001a\u00020\u00188\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u0019R\u001c\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00040\u001b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000b\u0010\u001cR\u0016\u0010 \u001a\u00020\u001e8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0007\u0010\u001fR\u001c\u0010#\u001a\b\u0012\u0004\u0012\u00020!0\u001b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\"\u0010\u001cR\u001a\u0010'\u001a\b\u0012\u0004\u0012\u00020%0$8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b&\u0010\u001c¨\u0006+"}, d2 = {"Lhi/j;", "", "Lokhttp3/HttpUrl;", "url", "Ljava/net/Proxy;", "proxy", "Lug/a0;", "f", "", "b", "d", "e", "a", "Lhi/j$b;", "c", "Lokhttp3/Address;", "Lokhttp3/Address;", "address", "Lhi/h;", "Lhi/h;", "routeDatabase", "Lokhttp3/Call;", "Lokhttp3/Call;", "call", "Lokhttp3/EventListener;", "Lokhttp3/EventListener;", "eventListener", "", "Ljava/util/List;", "proxies", "", "I", "nextProxyIndex", "Ljava/net/InetSocketAddress;", "g", "inetSocketAddresses", "", "Lokhttp3/Route;", "h", "postponedRoutes", "<init>", "(Lokhttp3/Address;Lhi/h;Lokhttp3/Call;Lokhttp3/EventListener;)V", "i", "okhttp"}, k = 1, mv = {1, 6, 0})
public final class j {
public static final Companion INSTANCE = new Companion(null);
private final Address address;
private final h routeDatabase;
private final Call call;
private final EventListener eventListener;
private List<? extends Proxy> proxies;
private int nextProxyIndex;
private List<? extends InetSocketAddress> inetSocketAddresses;
private final List<Route> postponedRoutes;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0007\u0010\bR\u0015\u0010\u0006\u001a\u00020\u0003*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005¨\u0006\t"}, d2 = {"Lhi/j$a;", "", "Ljava/net/InetSocketAddress;", "", "a", "(Ljava/net/InetSocketAddress;)Ljava/lang/String;", "socketHost", "<init>", "()V", "okhttp"}, k = 1, mv = {1, 6, 0})
public static final class Companion {
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final String a(InetSocketAddress inetSocketAddress) {
m.g(inetSocketAddress, "<this>");
InetAddress address = inetSocketAddress.getAddress();
if (address == null) {
String hostName = inetSocketAddress.getHostName();
m.f(hostName, "hostName");
return hostName;
}
String hostAddress = address.getHostAddress();
m.f(hostAddress, "address.hostAddress");
return hostAddress;
}
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0005\u0018\u00002\u00020\u0001B\u0015\u0012\f\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00040\u0006¢\u0006\u0004\b\u000e\u0010\u000fJ\t\u0010\u0003\u001a\u00020\u0002H\u0086\u0002J\t\u0010\u0005\u001a\u00020\u0004H\u0086\u0002R\u001d\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00040\u00068\u0006¢\u0006\f\n\u0004\b\u0007\u0010\b\u001a\u0004\b\u0007\u0010\tR\u0016\u0010\r\u001a\u00020\u000b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0003\u0010\f¨\u0006\u0010"}, d2 = {"Lhi/j$b;", "", "", "b", "Lokhttp3/Route;", "c", "", "a", "Ljava/util/List;", "()Ljava/util/List;", "routes", "", "I", "nextRouteIndex", "<init>", "(Ljava/util/List;)V", "okhttp"}, k = 1, mv = {1, 6, 0})
public static final class b {
private final List<Route> routes;
private int nextRouteIndex;
public b(List<Route> routes) {
m.g(routes, "routes");
this.routes = routes;
}
public final List<Route> a() {
return this.routes;
}
public final boolean b() {
return this.nextRouteIndex < this.routes.size();
}
public final Route c() {
if (!b()) {
throw new NoSuchElementException();
}
List<Route> list = this.routes;
int i = this.nextRouteIndex;
this.nextRouteIndex = i + 1;
return list.get(i);
}
}
public j(Address address, h routeDatabase, Call call, EventListener eventListener) {
m.g(address, "address");
m.g(routeDatabase, "routeDatabase");
m.g(call, "call");
m.g(eventListener, "eventListener");
this.address = address;
this.routeDatabase = routeDatabase;
this.call = call;
this.eventListener = eventListener;
this.proxies = s.l();
this.inetSocketAddresses = s.l();
this.postponedRoutes = new ArrayList();
f(address.url(), address.proxy());
}
private final boolean b() {
return this.nextProxyIndex < this.proxies.size();
}
private final Proxy d() throws IOException {
if (b()) {
List<? extends Proxy> list = this.proxies;
int i = this.nextProxyIndex;
this.nextProxyIndex = i + 1;
Proxy proxy = list.get(i);
e(proxy);
return proxy;
}
throw new SocketException("No route to " + this.address.url().host() + "; exhausted proxy configurations: " + this.proxies);
}
private final void e(Proxy proxy) throws IOException {
String host;
int port;
ArrayList arrayList = new ArrayList();
this.inetSocketAddresses = arrayList;
if (proxy.type() == Proxy.Type.DIRECT || proxy.type() == Proxy.Type.SOCKS) {
host = this.address.url().host();
port = this.address.url().port();
} else {
SocketAddress proxyAddress = proxy.address();
if (!(proxyAddress instanceof InetSocketAddress)) {
throw new IllegalArgumentException(m.o("Proxy.address() is not an InetSocketAddress: ", proxyAddress.getClass()).toString());
}
Companion companion = INSTANCE;
m.f(proxyAddress, "proxyAddress");
InetSocketAddress inetSocketAddress = (InetSocketAddress) proxyAddress;
host = companion.a(inetSocketAddress);
port = inetSocketAddress.getPort();
}
boolean z = false;
if (1 <= port && port < 65536) {
z = true;
}
if (!z) {
throw new SocketException("No route to " + host + ':' + port + "; port is out of range");
}
if (proxy.type() == Proxy.Type.SOCKS) {
arrayList.add(InetSocketAddress.createUnresolved(host, port));
return;
}
this.eventListener.dnsStart(this.call, host);
List<InetAddress> lookup = this.address.dns().lookup(host);
if (lookup.isEmpty()) {
throw new UnknownHostException(this.address.dns() + " returned no addresses for " + host);
}
this.eventListener.dnsEnd(this.call, host, lookup);
Iterator<InetAddress> it = lookup.iterator();
while (it.hasNext()) {
arrayList.add(new InetSocketAddress(it.next(), port));
}
}
private final void f(HttpUrl httpUrl, Proxy proxy) {
this.eventListener.proxySelectStart(this.call, httpUrl);
List<Proxy> g = g(proxy, httpUrl, this);
this.proxies = g;
this.nextProxyIndex = 0;
this.eventListener.proxySelectEnd(this.call, httpUrl, g);
}
private static final List<Proxy> g(Proxy proxy, HttpUrl httpUrl, j jVar) {
if (proxy != null) {
return r.e(proxy);
}
URI uri = httpUrl.uri();
if (uri.getHost() == null) {
return di.e.w(Proxy.NO_PROXY);
}
List<Proxy> proxiesOrNull = jVar.address.proxySelector().select(uri);
List<Proxy> list = proxiesOrNull;
if (list == null || list.isEmpty()) {
return di.e.w(Proxy.NO_PROXY);
}
m.f(proxiesOrNull, "proxiesOrNull");
return di.e.W(proxiesOrNull);
}
public final boolean a() {
return b() || (this.postponedRoutes.isEmpty() ^ true);
}
public final b c() throws IOException {
if (!a()) {
throw new NoSuchElementException();
}
ArrayList arrayList = new ArrayList();
while (b()) {
Proxy d = d();
Iterator<? extends InetSocketAddress> it = this.inetSocketAddresses.iterator();
while (it.hasNext()) {
Route route = new Route(this.address, d, it.next());
if (this.routeDatabase.c(route)) {
this.postponedRoutes.add(route);
} else {
arrayList.add(route);
}
}
if (!arrayList.isEmpty()) {
break;
}
}
if (arrayList.isEmpty()) {
x.A(arrayList, this.postponedRoutes);
this.postponedRoutes.clear();
}
return new b(arrayList);
}
}