mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 18:37:17 +01:00
90 lines
4 KiB
Java
90 lines
4 KiB
Java
package okhttp3;
|
|
|
|
import com.dee.app.metrics.MetricsConstants;
|
|
import defpackage.a$$ExternalSyntheticOutline0;
|
|
import java.io.IOException;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.JvmStatic;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import okio.Buffer$$ExternalSyntheticBUOutline0;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\n\b\u0086\u0001\u0018\u0000 \f2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\fB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0005\u001a\u00020\u0003H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000b¨\u0006\r"}, d2 = {"Lokhttp3/Protocol;", "", "protocol", "", "(Ljava/lang/String;ILjava/lang/String;)V", "toString", "HTTP_1_0", "HTTP_1_1", "SPDY_3", "HTTP_2", "H2_PRIOR_KNOWLEDGE", "QUIC", "Companion", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes10.dex */
|
|
public enum Protocol {
|
|
HTTP_1_0("http/1.0"),
|
|
HTTP_1_1("http/1.1"),
|
|
SPDY_3("spdy/3.1"),
|
|
HTTP_2("h2"),
|
|
H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
|
|
QUIC("quic");
|
|
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
|
|
@NotNull
|
|
private final String protocol;
|
|
|
|
Protocol(String str) {
|
|
this.protocol = str;
|
|
}
|
|
|
|
@JvmStatic
|
|
@NotNull
|
|
public static final Protocol get(@NotNull String str) throws IOException {
|
|
return INSTANCE.get(str);
|
|
}
|
|
|
|
@Override // java.lang.Enum
|
|
@NotNull
|
|
public String toString() {
|
|
return this.protocol;
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007¨\u0006\u0007"}, d2 = {"Lokhttp3/Protocol$Companion;", "", "()V", MetricsConstants.Method.CACHE_GET, "Lokhttp3/Protocol;", "protocol", "", "okhttp"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
@JvmStatic
|
|
@NotNull
|
|
public final Protocol get(@NotNull String protocol) throws IOException {
|
|
protocol.getClass();
|
|
Protocol protocol2 = Protocol.HTTP_1_0;
|
|
if (Intrinsics.areEqual(protocol, protocol2.protocol)) {
|
|
return protocol2;
|
|
}
|
|
Protocol protocol3 = Protocol.HTTP_1_1;
|
|
if (Intrinsics.areEqual(protocol, protocol3.protocol)) {
|
|
return protocol3;
|
|
}
|
|
Protocol protocol4 = Protocol.H2_PRIOR_KNOWLEDGE;
|
|
if (Intrinsics.areEqual(protocol, protocol4.protocol)) {
|
|
return protocol4;
|
|
}
|
|
Protocol protocol5 = Protocol.HTTP_2;
|
|
if (Intrinsics.areEqual(protocol, protocol5.protocol)) {
|
|
return protocol5;
|
|
}
|
|
Protocol protocol6 = Protocol.SPDY_3;
|
|
if (Intrinsics.areEqual(protocol, protocol6.protocol)) {
|
|
return protocol6;
|
|
}
|
|
Protocol protocol7 = Protocol.QUIC;
|
|
if (Intrinsics.areEqual(protocol, protocol7.protocol)) {
|
|
return protocol7;
|
|
}
|
|
Buffer$$ExternalSyntheticBUOutline0.m$2(a$$ExternalSyntheticOutline0.m("Unexpected protocol: ", protocol));
|
|
return null;
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|