Rabbit-R1/switch port/smali/smali_classes3/okhttp3/Request.smali
2024-05-21 17:08:36 -04:00

573 lines
17 KiB
Smali

.class public final Lokhttp3/Request;
.super Ljava/lang/Object;
.source "Request.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/Request$Builder;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Request.kt\nokhttp3/Request\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,298:1\n1808#2,3:299\n*E\n*S KotlinDebug\n*F\n+ 1 Request.kt\nokhttp3/Request\n*L\n119#1,3:299\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000N\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u000b\n\u0002\u0010 \n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0008\u0018\u00002\u00020\u0001:\u0001*BA\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0008\u0010\u0008\u001a\u0004\u0018\u00010\t\u0012\u0016\u0010\n\u001a\u0012\u0012\u0008\u0012\u0006\u0012\u0002\u0008\u00030\u000c\u0012\u0004\u0012\u00020\u00010\u000b\u00a2\u0006\u0002\u0010\rJ\u000f\u0010\u0008\u001a\u0004\u0018\u00010\tH\u0007\u00a2\u0006\u0002\u0008\u001bJ\r\u0010\u000f\u001a\u00020\u0010H\u0007\u00a2\u0006\u0002\u0008\u001cJ\u0010\u0010\u001d\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u001e\u001a\u00020\u0005J\r\u0010\u0006\u001a\u00020\u0007H\u0007\u00a2\u0006\u0002\u0008\u001fJ\u0014\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00050 2\u0006\u0010\u001e\u001a\u00020\u0005J\r\u0010\u0004\u001a\u00020\u0005H\u0007\u00a2\u0006\u0002\u0008!J\u0006\u0010\"\u001a\u00020#J\u0008\u0010$\u001a\u0004\u0018\u00010\u0001J#\u0010$\u001a\u0004\u0018\u0001H%\"\u0004\u0008\u0000\u0010%2\u000e\u0010&\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H%0\u000c\u00a2\u0006\u0002\u0010\'J\u0008\u0010(\u001a\u00020\u0005H\u0016J\r\u0010\u0002\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008)R\u0015\u0010\u0008\u001a\u0004\u0018\u00010\t8\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\u000eR\u0011\u0010\u000f\u001a\u00020\u00108G\u00a2\u0006\u0006\u001a\u0004\u0008\u000f\u0010\u0011R\u0013\u0010\u0006\u001a\u00020\u00078\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0006\u0010\u0012R\u0011\u0010\u0013\u001a\u00020\u00148F\u00a2\u0006\u0006\u001a\u0004\u0008\u0013\u0010\u0015R\u0010\u0010\u0016\u001a\u0004\u0018\u00010\u0010X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0013\u0010\u0004\u001a\u00020\u00058\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0004\u0010\u0017R$\u0010\n\u001a\u0012\u0012\u0008\u0012\u0006\u0012\u0002\u0008\u00030\u000c\u0012\u0004\u0012\u00020\u00010\u000bX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0018\u0010\u0019R\u0013\u0010\u0002\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0002\u0010\u001a\u00a8\u0006+"
}
d2 = {
"Lokhttp3/Request;",
"",
"url",
"Lokhttp3/HttpUrl;",
"method",
"",
"headers",
"Lokhttp3/Headers;",
"body",
"Lokhttp3/RequestBody;",
"tags",
"",
"Ljava/lang/Class;",
"(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V",
"()Lokhttp3/RequestBody;",
"cacheControl",
"Lokhttp3/CacheControl;",
"()Lokhttp3/CacheControl;",
"()Lokhttp3/Headers;",
"isHttps",
"",
"()Z",
"lazyCacheControl",
"()Ljava/lang/String;",
"getTags$okhttp",
"()Ljava/util/Map;",
"()Lokhttp3/HttpUrl;",
"-deprecated_body",
"-deprecated_cacheControl",
"header",
"name",
"-deprecated_headers",
"",
"-deprecated_method",
"newBuilder",
"Lokhttp3/Request$Builder;",
"tag",
"T",
"type",
"(Ljava/lang/Class;)Ljava/lang/Object;",
"toString",
"-deprecated_url",
"Builder",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# instance fields
.field private final body:Lokhttp3/RequestBody;
.field private final headers:Lokhttp3/Headers;
.field private lazyCacheControl:Lokhttp3/CacheControl;
.field private final method:Ljava/lang/String;
.field private final tags:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private final url:Lokhttp3/HttpUrl;
# direct methods
.method public constructor <init>(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/HttpUrl;",
"Ljava/lang/String;",
"Lokhttp3/Headers;",
"Lokhttp3/RequestBody;",
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;+",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const-string v0, "url"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "method"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "headers"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "tags"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
iput-object p2, p0, Lokhttp3/Request;->method:Ljava/lang/String;
iput-object p3, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
iput-object p4, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
iput-object p5, p0, Lokhttp3/Request;->tags:Ljava/util/Map;
return-void
.end method
# virtual methods
.method public final -deprecated_body()Lokhttp3/RequestBody;
.locals 0
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to val"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "body"
imports = {}
.end subannotation
.end annotation
iget-object p0, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
return-object p0
.end method
.method public final -deprecated_cacheControl()Lokhttp3/CacheControl;
.locals 0
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to val"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "cacheControl"
imports = {}
.end subannotation
.end annotation
.line 110
invoke-virtual {p0}, Lokhttp3/Request;->cacheControl()Lokhttp3/CacheControl;
move-result-object p0
return-object p0
.end method
.method public final -deprecated_headers()Lokhttp3/Headers;
.locals 0
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to val"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "headers"
imports = {}
.end subannotation
.end annotation
iget-object p0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
return-object p0
.end method
.method public final -deprecated_method()Ljava/lang/String;
.locals 0
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to val"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "method"
imports = {}
.end subannotation
.end annotation
iget-object p0, p0, Lokhttp3/Request;->method:Ljava/lang/String;
return-object p0
.end method
.method public final -deprecated_url()Lokhttp3/HttpUrl;
.locals 0
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to val"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "url"
imports = {}
.end subannotation
.end annotation
iget-object p0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
return-object p0
.end method
.method public final body()Lokhttp3/RequestBody;
.locals 0
iget-object p0, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
return-object p0
.end method
.method public final cacheControl()Lokhttp3/CacheControl;
.locals 2
iget-object v0, p0, Lokhttp3/Request;->lazyCacheControl:Lokhttp3/CacheControl;
if-nez v0, :cond_0
.line 71
sget-object v0, Lokhttp3/CacheControl;->Companion:Lokhttp3/CacheControl$Companion;
iget-object v1, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
invoke-virtual {v0, v1}, Lokhttp3/CacheControl$Companion;->parse(Lokhttp3/Headers;)Lokhttp3/CacheControl;
move-result-object v0
iput-object v0, p0, Lokhttp3/Request;->lazyCacheControl:Lokhttp3/CacheControl;
:cond_0
return-object v0
.end method
.method public final getTags$okhttp()Ljava/util/Map;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object p0, p0, Lokhttp3/Request;->tags:Ljava/util/Map;
return-object p0
.end method
.method public final header(Ljava/lang/String;)Ljava/lang/String;
.locals 1
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
.line 41
invoke-virtual {p0, p1}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public final headers(Ljava/lang/String;)Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
.line 43
invoke-virtual {p0, p1}, Lokhttp3/Headers;->values(Ljava/lang/String;)Ljava/util/List;
move-result-object p0
return-object p0
.end method
.method public final headers()Lokhttp3/Headers;
.locals 0
iget-object p0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
return-object p0
.end method
.method public final isHttps()Z
.locals 0
iget-object p0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
.line 39
invoke-virtual {p0}, Lokhttp3/HttpUrl;->isHttps()Z
move-result p0
return p0
.end method
.method public final method()Ljava/lang/String;
.locals 0
iget-object p0, p0, Lokhttp3/Request;->method:Ljava/lang/String;
return-object p0
.end method
.method public final newBuilder()Lokhttp3/Request$Builder;
.locals 1
.line 61
new-instance v0, Lokhttp3/Request$Builder;
invoke-direct {v0, p0}, Lokhttp3/Request$Builder;-><init>(Lokhttp3/Request;)V
return-object v0
.end method
.method public final tag()Ljava/lang/Object;
.locals 1
.line 53
const-class v0, Ljava/lang/Object;
invoke-virtual {p0, v0}, Lokhttp3/Request;->tag(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public final tag(Ljava/lang/Class;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"+TT;>;)TT;"
}
.end annotation
const-string v0, "type"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Lokhttp3/Request;->tags:Ljava/util/Map;
.line 59
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, p0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public toString()Ljava/lang/String;
.locals 6
.line 112
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Request{method="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lokhttp3/Request;->method:Ljava/lang/String;
.line 114
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", url="
.line 115
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
.line 116
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
.line 117
invoke-virtual {v1}, Lokhttp3/Headers;->size()I
move-result v1
if-eqz v1, :cond_3
const-string v1, ", headers=["
.line 118
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
.line 119
check-cast v1, Ljava/lang/Iterable;
.line 300
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
const/4 v2, 0x0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
add-int/lit8 v4, v2, 0x1
if-gez v2, :cond_0
invoke-static {}, Lkotlin/collections/CollectionsKt;->throwIndexOverflow()V
:cond_0
check-cast v3, Lkotlin/Pair;
invoke-virtual {v3}, Lkotlin/Pair;->component1()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
invoke-virtual {v3}, Lkotlin/Pair;->component2()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
if-lez v2, :cond_1
const-string v2, ", "
.line 121
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 123
:cond_1
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v2, 0x3a
.line 124
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 125
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move v2, v4
goto :goto_0
:cond_2
const/16 v1, 0x5d
.line 127
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
:cond_3
iget-object v1, p0, Lokhttp3/Request;->tags:Ljava/util/Map;
.line 129
invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
move-result v1
xor-int/lit8 v1, v1, 0x1
if-eqz v1, :cond_4
const-string v1, ", tags="
.line 130
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p0, p0, Lokhttp3/Request;->tags:Ljava/util/Map;
.line 131
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
:cond_4
const/16 p0, 0x7d
.line 133
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 112
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string v0, "StringBuilder().apply(builderAction).toString()"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public final url()Lokhttp3/HttpUrl;
.locals 0
iget-object p0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
return-object p0
.end method