.class public final Lokhttp3/HttpUrl$Builder; .super Ljava/lang/Object; .source "HttpUrl.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/HttpUrl; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Builder" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/HttpUrl$Builder$Companion; } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nHttpUrl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HttpUrl.kt\nokhttp3/HttpUrl$Builder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1868:1\n1#2:1869\n1497#3:1870\n1568#3,3:1871\n1497#3:1874\n1568#3,3:1875\n*E\n*S KotlinDebug\n*F\n+ 1 HttpUrl.kt\nokhttp3/HttpUrl$Builder\n*L\n1180#1:1870\n1180#1,3:1871\n1181#1:1874\n1181#1,3:1875\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0008\n\u0002\u0010!\n\u0002\u0008\r\n\u0002\u0010\u0008\n\u0002\u0008\u0012\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u000c\n\u0002\u0010\u0002\n\u0002\u0008\u0017\u0018\u0000 V2\u00020\u0001:\u0001VB\u0005\u00a2\u0006\u0002\u0010\u0002J\u000e\u0010#\u001a\u00020\u00002\u0006\u0010$\u001a\u00020\u0004J\u000e\u0010%\u001a\u00020\u00002\u0006\u0010\u000c\u001a\u00020\u0004J\u0018\u0010&\u001a\u00020\u00002\u0006\u0010\'\u001a\u00020\u00042\u0008\u0010(\u001a\u0004\u0018\u00010\u0004J\u000e\u0010)\u001a\u00020\u00002\u0006\u0010*\u001a\u00020\u0004J\u000e\u0010+\u001a\u00020\u00002\u0006\u0010,\u001a\u00020\u0004J\u0018\u0010+\u001a\u00020\u00002\u0006\u0010,\u001a\u00020\u00042\u0006\u0010-\u001a\u00020.H\u0002J\u0018\u0010/\u001a\u00020\u00002\u0006\u00100\u001a\u00020\u00042\u0008\u00101\u001a\u0004\u0018\u00010\u0004J\u0006\u00102\u001a\u000203J\u0008\u00104\u001a\u00020\u001bH\u0002J\u0010\u0010\u0003\u001a\u00020\u00002\u0008\u0010\u0003\u001a\u0004\u0018\u00010\u0004J\u000e\u0010\t\u001a\u00020\u00002\u0006\u0010\t\u001a\u00020\u0004J\u000e\u00105\u001a\u00020\u00002\u0006\u00105\u001a\u00020\u0004J\u0010\u00106\u001a\u00020\u00002\u0008\u00106\u001a\u0004\u0018\u00010\u0004J\u000e\u0010\u0014\u001a\u00020\u00002\u0006\u0010\u0014\u001a\u00020\u0004J\u0010\u00107\u001a\u00020\u00002\u0008\u00107\u001a\u0004\u0018\u00010\u0004J\u000e\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0017\u001a\u00020\u0004J\u0010\u00108\u001a\u00020.2\u0006\u00109\u001a\u00020\u0004H\u0002J\u0010\u0010:\u001a\u00020.2\u0006\u00109\u001a\u00020\u0004H\u0002J\u001f\u0010;\u001a\u00020\u00002\u0008\u0010<\u001a\u0004\u0018\u0001032\u0006\u00109\u001a\u00020\u0004H\u0000\u00a2\u0006\u0002\u0008=J\u000e\u0010>\u001a\u00020\u00002\u0006\u0010>\u001a\u00020\u0004J\u0008\u0010?\u001a\u00020@H\u0002J\u000e\u0010\u001a\u001a\u00020\u00002\u0006\u0010\u001a\u001a\u00020\u001bJ0\u0010A\u001a\u00020@2\u0006\u00109\u001a\u00020\u00042\u0006\u0010B\u001a\u00020\u001b2\u0006\u0010C\u001a\u00020\u001b2\u0006\u0010D\u001a\u00020.2\u0006\u0010-\u001a\u00020.H\u0002J\u0010\u0010E\u001a\u00020\u00002\u0008\u0010E\u001a\u0004\u0018\u00010\u0004J\r\u0010F\u001a\u00020\u0000H\u0000\u00a2\u0006\u0002\u0008GJ\u0010\u0010H\u001a\u00020@2\u0006\u0010I\u001a\u00020\u0004H\u0002J\u000e\u0010J\u001a\u00020\u00002\u0006\u0010\'\u001a\u00020\u0004J\u000e\u0010K\u001a\u00020\u00002\u0006\u00100\u001a\u00020\u0004J\u000e\u0010L\u001a\u00020\u00002\u0006\u0010M\u001a\u00020\u001bJ \u0010N\u001a\u00020@2\u0006\u00109\u001a\u00020\u00042\u0006\u0010O\u001a\u00020\u001b2\u0006\u0010C\u001a\u00020\u001bH\u0002J\u000e\u0010 \u001a\u00020\u00002\u0006\u0010 \u001a\u00020\u0004J\u0016\u0010P\u001a\u00020\u00002\u0006\u0010M\u001a\u00020\u001b2\u0006\u0010$\u001a\u00020\u0004J\u0018\u0010Q\u001a\u00020\u00002\u0006\u0010\'\u001a\u00020\u00042\u0008\u0010(\u001a\u0004\u0018\u00010\u0004J\u0016\u0010R\u001a\u00020\u00002\u0006\u0010M\u001a\u00020\u001b2\u0006\u0010*\u001a\u00020\u0004J\u0018\u0010S\u001a\u00020\u00002\u0006\u00100\u001a\u00020\u00042\u0008\u00101\u001a\u0004\u0018\u00010\u0004J\u0008\u0010T\u001a\u00020\u0004H\u0016J\u000e\u0010U\u001a\u00020\u00002\u0006\u0010U\u001a\u00020\u0004R\u001c\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0005\u0010\u0006\"\u0004\u0008\u0007\u0010\u0008R\u001a\u0010\t\u001a\u00020\u0004X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\n\u0010\u0006\"\u0004\u0008\u000b\u0010\u0008R\u001a\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u00020\u00040\rX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000e\u0010\u000fR$\u0010\u0010\u001a\u000c\u0012\u0006\u0012\u0004\u0018\u00010\u0004\u0018\u00010\rX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0011\u0010\u000f\"\u0004\u0008\u0012\u0010\u0013R\u001a\u0010\u0014\u001a\u00020\u0004X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0015\u0010\u0006\"\u0004\u0008\u0016\u0010\u0008R\u001c\u0010\u0017\u001a\u0004\u0018\u00010\u0004X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0018\u0010\u0006\"\u0004\u0008\u0019\u0010\u0008R\u001a\u0010\u001a\u001a\u00020\u001bX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001c\u0010\u001d\"\u0004\u0008\u001e\u0010\u001fR\u001c\u0010 \u001a\u0004\u0018\u00010\u0004X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008!\u0010\u0006\"\u0004\u0008\"\u0010\u0008\u00a8\u0006W" } d2 = { "Lokhttp3/HttpUrl$Builder;", "", "()V", "encodedFragment", "", "getEncodedFragment$okhttp", "()Ljava/lang/String;", "setEncodedFragment$okhttp", "(Ljava/lang/String;)V", "encodedPassword", "getEncodedPassword$okhttp", "setEncodedPassword$okhttp", "encodedPathSegments", "", "getEncodedPathSegments$okhttp", "()Ljava/util/List;", "encodedQueryNamesAndValues", "getEncodedQueryNamesAndValues$okhttp", "setEncodedQueryNamesAndValues$okhttp", "(Ljava/util/List;)V", "encodedUsername", "getEncodedUsername$okhttp", "setEncodedUsername$okhttp", "host", "getHost$okhttp", "setHost$okhttp", "port", "", "getPort$okhttp", "()I", "setPort$okhttp", "(I)V", "scheme", "getScheme$okhttp", "setScheme$okhttp", "addEncodedPathSegment", "encodedPathSegment", "addEncodedPathSegments", "addEncodedQueryParameter", "encodedName", "encodedValue", "addPathSegment", "pathSegment", "addPathSegments", "pathSegments", "alreadyEncoded", "", "addQueryParameter", "name", "value", "build", "Lokhttp3/HttpUrl;", "effectivePort", "encodedPath", "encodedQuery", "fragment", "isDot", "input", "isDotDot", "parse", "base", "parse$okhttp", "password", "pop", "", "push", "pos", "limit", "addTrailingSlash", "query", "reencodeForUri", "reencodeForUri$okhttp", "removeAllCanonicalQueryParameters", "canonicalName", "removeAllEncodedQueryParameters", "removeAllQueryParameters", "removePathSegment", "index", "resolvePath", "startPos", "setEncodedPathSegment", "setEncodedQueryParameter", "setPathSegment", "setQueryParameter", "toString", "username", "Companion", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokhttp3/HttpUrl$Builder$Companion; .field public static final INVALID_HOST:Ljava/lang/String; = "Invalid URL host" # instance fields .field private encodedFragment:Ljava/lang/String; .field private encodedPassword:Ljava/lang/String; .field private final encodedPathSegments:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation .end field .field private encodedQueryNamesAndValues:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation .end field .field private encodedUsername:Ljava/lang/String; .field private host:Ljava/lang/String; .field private port:I .field private scheme:Ljava/lang/String; # direct methods .method static constructor ()V .locals 2 new-instance v0, Lokhttp3/HttpUrl$Builder$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/HttpUrl$Builder$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokhttp3/HttpUrl$Builder;->Companion:Lokhttp3/HttpUrl$Builder$Companion; return-void .end method .method public constructor ()V .locals 2 .line 909 invoke-direct {p0}, Ljava/lang/Object;->()V const-string v0, "" iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; const/4 v1, -0x1 iput v1, p0, Lokhttp3/HttpUrl$Builder;->port:I .line 915 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;->()V check-cast v1, Ljava/util/List; iput-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 920 invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .end method .method private final addPathSegments(Ljava/lang/String;Z)Lokhttp3/HttpUrl$Builder; .locals 8 .line 997 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; const/4 v0, 0x0 move v3, v0 :cond_0 const-string v1, "/\\" .line 1000 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v2 invoke-static {p1, v1, v3, v2}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;Ljava/lang/String;II)I move-result v7 .line 1001 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v1 if-ge v7, v1, :cond_1 const/4 v1, 0x1 move v5, v1 goto :goto_0 :cond_1 move v5, v0 :goto_0 move-object v1, p0 move-object v2, p1 move v4, v7 move v6, p2 .line 1002 invoke-direct/range {v1 .. v6}, Lokhttp3/HttpUrl$Builder;->push(Ljava/lang/String;IIZZ)V add-int/lit8 v3, v7, 0x1 .line 1004 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v1 if-le v3, v1, :cond_0 return-object p0 .end method .method private final effectivePort()I .locals 2 iget v0, p0, Lokhttp3/HttpUrl$Builder;->port:I const/4 v1, -0x1 if-eq v0, v1, :cond_0 goto :goto_0 .line 972 :cond_0 sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v0, p0}, Lokhttp3/HttpUrl$Companion;->defaultPort(Ljava/lang/String;)I move-result v0 :goto_0 return v0 .end method .method private final isDot(Ljava/lang/String;)Z .locals 1 const-string p0, "." .line 1451 invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p0 const/4 v0, 0x1 if-nez p0, :cond_1 const-string p0, "%2e" invoke-static {p1, p0, v0}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result p0 if-eqz p0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 :cond_1 :goto_0 return v0 .end method .method private final isDotDot(Ljava/lang/String;)Z .locals 1 const-string p0, ".." .line 1458 invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p0 const/4 v0, 0x1 if-nez p0, :cond_1 const-string p0, "%2e." .line 1456 invoke-static {p1, p0, v0}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result p0 if-nez p0, :cond_1 const-string p0, ".%2e" .line 1457 invoke-static {p1, p0, v0}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result p0 if-nez p0, :cond_1 const-string p0, "%2e%2e" .line 1458 invoke-static {p1, p0, v0}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result p0 if-eqz p0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 :cond_1 :goto_0 return v0 .end method .method private final pop()V .locals 2 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1472 invoke-interface {v0}, Ljava/util/List;->size()I move-result v1 add-int/lit8 v1, v1, -0x1 invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; .line 1475 check-cast v0, Ljava/lang/CharSequence; invoke-interface {v0}, Ljava/lang/CharSequence;->length()I move-result v0 const-string v1, "" if-nez v0, :cond_0 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; check-cast v0, Ljava/util/Collection; invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z move-result v0 xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1476 invoke-interface {p0}, Ljava/util/List;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 invoke-interface {p0, v0, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1478 invoke-interface {p0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :goto_0 return-void .end method .method private final push(Ljava/lang/String;IIZZ)V .locals 13 move-object v0, p0 .line 1427 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const-string v5, " \"<>^`{}|/\\?#" const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xf0 const/4 v12, 0x0 move-object v2, p1 move v3, p2 move/from16 v4, p3 move/from16 v6, p5 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 .line 1433 invoke-direct {p0, v1}, Lokhttp3/HttpUrl$Builder;->isDot(Ljava/lang/String;)Z move-result v2 if-eqz v2, :cond_0 return-void .line 1436 :cond_0 invoke-direct {p0, v1}, Lokhttp3/HttpUrl$Builder;->isDotDot(Ljava/lang/String;)Z move-result v2 if-eqz v2, :cond_1 .line 1437 invoke-direct {p0}, Lokhttp3/HttpUrl$Builder;->pop()V return-void :cond_1 iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1440 invoke-interface {v2}, Ljava/util/List;->size()I move-result v3 add-int/lit8 v3, v3, -0x1 invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/lang/CharSequence; invoke-interface {v2}, Ljava/lang/CharSequence;->length()I move-result v2 if-nez v2, :cond_2 iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1441 invoke-interface {v2}, Ljava/util/List;->size()I move-result v3 add-int/lit8 v3, v3, -0x1 invoke-interface {v2, v3, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_2 iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1443 invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :goto_0 if-eqz p4, :cond_3 iget-object v0, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; const-string v1, "" .line 1446 invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_3 return-void .end method .method private final removeAllCanonicalQueryParameters(Ljava/lang/String;)V .locals 5 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1110 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 const/4 v1, 0x2 sub-int/2addr v0, v1 const/4 v2, 0x0 invoke-static {v0, v2}, Lkotlin/ranges/RangesKt;->downTo(II)Lkotlin/ranges/IntProgression; move-result-object v0 invoke-static {v0, v1}, Lkotlin/ranges/RangesKt;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression; move-result-object v0 invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->getFirst()I move-result v1 invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->getLast()I move-result v2 invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->getStep()I move-result v0 if-ltz v0, :cond_0 if-gt v1, v2, :cond_2 goto :goto_0 :cond_0 if-lt v1, v2, :cond_2 :goto_0 iget-object v3, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1111 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/lang/String; invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v3 if-eqz v3, :cond_1 iget-object v3, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1112 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V add-int/lit8 v4, v1, 0x1 invoke-interface {v3, v4}, Ljava/util/List;->remove(I)Ljava/lang/Object; iget-object v3, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1113 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-interface {v3, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object; iget-object v3, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1114 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-interface {v3}, Ljava/util/List;->isEmpty()Z move-result v3 if-eqz v3, :cond_1 const/4 p1, 0x0 .line 1115 move-object v0, p1 check-cast v0, Ljava/util/List; iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; return-void :cond_1 if-eq v1, v2, :cond_2 add-int/2addr v1, v0 goto :goto_0 :cond_2 return-void .end method .method private final resolvePath(Ljava/lang/String;II)V .locals 10 if-ne p2, p3, :cond_0 return-void .line 1397 :cond_0 invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C move-result v0 const/16 v1, 0x2f const-string v2, "" const/4 v3, 0x1 if-eq v0, v1, :cond_2 const/16 v1, 0x5c if-ne v0, v1, :cond_1 goto :goto_0 :cond_1 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1405 invoke-interface {v0}, Ljava/util/List;->size()I move-result v1 sub-int/2addr v1, v3 invoke-interface {v0, v1, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; goto :goto_1 :cond_2 :goto_0 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1400 invoke-interface {v0}, Ljava/util/List;->clear()V iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1401 invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_3 :cond_3 :goto_1 move v6, p2 if-ge v6, p3, :cond_5 const-string p2, "/\\" .line 1411 invoke-static {p1, p2, v6, p3}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;Ljava/lang/String;II)I move-result p2 if-ge p2, p3, :cond_4 move v0, v3 goto :goto_2 :cond_4 const/4 v0, 0x0 :goto_2 const/4 v9, 0x1 move-object v4, p0 move-object v5, p1 move v7, p2 move v8, v0 .line 1413 invoke-direct/range {v4 .. v9}, Lokhttp3/HttpUrl$Builder;->push(Ljava/lang/String;IIZZ)V if-eqz v0, :cond_3 :goto_3 add-int/lit8 p2, p2, 0x1 goto :goto_1 :cond_5 return-void .end method # virtual methods .method public final addEncodedPathSegment(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 7 const-string v0, "encodedPathSegment" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 985 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; const/4 v3, 0x0 .line 986 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v4 const/4 v5, 0x0 const/4 v6, 0x1 move-object v1, p0 move-object v2, p1 invoke-direct/range {v1 .. v6}, Lokhttp3/HttpUrl$Builder;->push(Ljava/lang/String;IIZZ)V return-object p0 .end method .method public final addEncodedPathSegments(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 1 const-string v0, "encodedPathSegments" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x1 .line 995 invoke-direct {p0, p1, v0}, Lokhttp3/HttpUrl$Builder;->addPathSegments(Ljava/lang/String;Z)Lokhttp3/HttpUrl$Builder; move-result-object p0 return-object p0 .end method .method public final addEncodedQueryParameter(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "encodedName" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1067 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; if-nez v0, :cond_0 .line 1068 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V check-cast v0, Ljava/util/List; iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; :cond_0 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1069 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\'<>#&=" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xd3 const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z iget-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1074 invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V if-eqz p2, :cond_1 sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v2, 0x0 const/4 v3, 0x0 const-string v4, " \"\'<>#&=" const/4 v5, 0x1 const/4 v6, 0x0 const/4 v7, 0x1 const/4 v8, 0x0 const/4 v9, 0x0 const/16 v10, 0xd3 const/4 v11, 0x0 move-object v1, p2 invoke-static/range {v0 .. v11}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p2 goto :goto_0 :cond_1 const/4 p2, 0x0 :goto_0 invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-object p0 .end method .method public final addPathSegment(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 7 const-string v0, "pathSegment" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 975 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; const/4 v3, 0x0 .line 976 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v4 const/4 v5, 0x0 const/4 v6, 0x0 move-object v1, p0 move-object v2, p1 invoke-direct/range {v1 .. v6}, Lokhttp3/HttpUrl$Builder;->push(Ljava/lang/String;IIZZ)V return-object p0 .end method .method public final addPathSegments(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 1 const-string v0, "pathSegments" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 983 invoke-direct {p0, p1, v0}, Lokhttp3/HttpUrl$Builder;->addPathSegments(Ljava/lang/String;Z)Lokhttp3/HttpUrl$Builder; move-result-object p0 return-object p0 .end method .method public final addQueryParameter(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1054 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; if-nez v0, :cond_0 .line 1055 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V check-cast v0, Ljava/util/List; iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; :cond_0 iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1056 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xdb const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z iget-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; .line 1060 invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V if-eqz p2, :cond_1 sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v2, 0x0 const/4 v3, 0x0 const-string v4, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~" const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x1 const/4 v8, 0x0 const/4 v9, 0x0 const/16 v10, 0xdb const/4 v11, 0x0 move-object v1, p2 invoke-static/range {v0 .. v11}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p2 goto :goto_0 :cond_1 const/4 p2, 0x0 :goto_0 invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-object p0 .end method .method public final build()Lokhttp3/HttpUrl; .locals 18 move-object/from16 v0, p0 iget-object v1, v0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; if-eqz v1, :cond_6 .line 1176 sget-object v2, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v3, v0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x7 const/4 v8, 0x0 invoke-static/range {v2 .. v8}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v2 .line 1177 sget-object v3, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v4, v0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; const/4 v7, 0x0 const/4 v8, 0x7 const/4 v9, 0x0 invoke-static/range {v3 .. v9}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v3 iget-object v4, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; if-eqz v4, :cond_5 .line 1179 invoke-direct/range {p0 .. p0}, Lokhttp3/HttpUrl$Builder;->effectivePort()I move-result v5 iget-object v6, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1180 check-cast v6, Ljava/lang/Iterable; .line 1870 new-instance v7, Ljava/util/ArrayList; const/16 v8, 0xa invoke-static {v6, v8}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I move-result v9 invoke-direct {v7, v9}, Ljava/util/ArrayList;->(I)V check-cast v7, Ljava/util/Collection; .line 1871 invoke-interface {v6}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v6 :goto_0 invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z move-result v9 if-eqz v9, :cond_0 invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v9 .line 1872 move-object v11, v9 check-cast v11, Ljava/lang/String; .line 1180 sget-object v10, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v12, 0x0 const/4 v13, 0x0 const/4 v14, 0x0 const/4 v15, 0x7 const/16 v16, 0x0 invoke-static/range {v10 .. v16}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v9 invoke-interface {v7, v9}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_0 .line 1873 :cond_0 move-object v6, v7 check-cast v6, Ljava/util/List; iget-object v7, v0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; const/4 v9, 0x0 if-eqz v7, :cond_3 .line 1181 check-cast v7, Ljava/lang/Iterable; .line 1874 new-instance v10, Ljava/util/ArrayList; invoke-static {v7, v8}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I move-result v8 invoke-direct {v10, v8}, Ljava/util/ArrayList;->(I)V check-cast v10, Ljava/util/Collection; .line 1875 invoke-interface {v7}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v7 :goto_1 invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z move-result v8 if-eqz v8, :cond_2 invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v8 .line 1876 move-object v12, v8 check-cast v12, Ljava/lang/String; if-eqz v12, :cond_1 .line 1181 sget-object v11, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v13, 0x0 const/4 v14, 0x0 const/4 v15, 0x1 const/16 v16, 0x3 const/16 v17, 0x0 invoke-static/range {v11 .. v17}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v8 goto :goto_2 :cond_1 move-object v8, v9 :goto_2 invoke-interface {v10, v8}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_1 .line 1877 :cond_2 check-cast v10, Ljava/util/List; move-object v7, v10 goto :goto_3 :cond_3 move-object v7, v9 :goto_3 iget-object v11, v0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; if-eqz v11, :cond_4 .line 1182 sget-object v10, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v12, 0x0 const/4 v13, 0x0 const/4 v14, 0x0 const/4 v15, 0x7 const/16 v16, 0x0 invoke-static/range {v10 .. v16}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v8 goto :goto_4 :cond_4 move-object v8, v9 .line 1183 :goto_4 invoke-virtual/range {p0 .. p0}, Lokhttp3/HttpUrl$Builder;->toString()Ljava/lang/String; move-result-object v9 .line 1174 new-instance v10, Lokhttp3/HttpUrl; move-object v0, v10 invoke-direct/range {v0 .. v9}, Lokhttp3/HttpUrl;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V return-object v10 .line 1178 :cond_5 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "host == null" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .line 1175 :cond_6 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "scheme == null" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public final encodedFragment(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 .line 1129 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; if-eqz p1, :cond_0 .line 1130 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, "" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x1 const/4 v10, 0x0 const/16 v11, 0xb3 const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; return-object p0 .end method .method public final encodedPassword(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "encodedPassword" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 949 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 950 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\':;<=>@[]^`{}|/\\?#" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xf3 const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; return-object p0 .end method .method public final encodedPath(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 4 const-string v0, "encodedPath" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1033 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; const/4 v0, 0x2 const/4 v1, 0x0 const-string v2, "/" const/4 v3, 0x0 .line 1034 invoke-static {p1, v2, v3, v0, v1}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 .line 1035 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v0 invoke-direct {p0, p1, v3, v0}, Lokhttp3/HttpUrl$Builder;->resolvePath(Ljava/lang/String;II)V return-object p0 .line 1034 :cond_0 new-instance p0, Ljava/lang/StringBuilder; const-string v0, "unexpected encodedPath: " invoke-direct {p0, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public final encodedQuery(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 .line 1045 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; if-eqz p1, :cond_0 .line 1050 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\'<>#" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xd3 const/4 v12, 0x0 move-object v2, p1 .line 1046 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 if-eqz p1, :cond_0 sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; .line 1050 invoke-virtual {v0, p1}, Lokhttp3/HttpUrl$Companion;->toQueryNamesAndValues$okhttp(Ljava/lang/String;)Ljava/util/List; move-result-object p1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; return-object p0 .end method .method public final encodedUsername(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "encodedUsername" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 938 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 939 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\':;<=>@[]^`{}|/\\?#" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xf3 const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; return-object p0 .end method .method public final fragment(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 .line 1122 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; if-eqz p1, :cond_0 .line 1123 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, "" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x1 const/4 v10, 0x0 const/16 v11, 0xbb const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; return-object p0 .end method .method public final getEncodedFragment$okhttp()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; return-object p0 .end method .method public final getEncodedPassword$okhttp()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; return-object p0 .end method .method public final getEncodedPathSegments$okhttp()Ljava/util/List; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; return-object p0 .end method .method public final getEncodedQueryNamesAndValues$okhttp()Ljava/util/List; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; return-object p0 .end method .method public final getEncodedUsername$okhttp()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; return-object p0 .end method .method public final getHost$okhttp()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; return-object p0 .end method .method public final getPort$okhttp()I .locals 0 iget p0, p0, Lokhttp3/HttpUrl$Builder;->port:I return p0 .end method .method public final getScheme$okhttp()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; return-object p0 .end method .method public final host(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 8 const-string v0, "host" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 960 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 961 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x7 const/4 v7, 0x0 move-object v2, p1 invoke-static/range {v1 .. v7}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v0 invoke-static {v0}, Lokhttp3/internal/HostnamesKt;->toCanonicalHost(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_0 iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; return-object p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; .line 962 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "unexpected host: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 .line 961 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public final parse$okhttp(Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 29 move-object/from16 v0, p0 move-object/from16 v13, p2 const-string v1, "input" invoke-static {v13, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v14, 0x0 const/4 v1, 0x3 const/4 v2, 0x0 .line 1239 invoke-static {v13, v14, v14, v1, v2}, Lokhttp3/internal/Util;->indexOfFirstNonAsciiWhitespace$default(Ljava/lang/String;IIILjava/lang/Object;)I move-result v1 const/4 v3, 0x2 .line 1240 invoke-static {v13, v1, v14, v3, v2}, Lokhttp3/internal/Util;->indexOfLastNonAsciiWhitespace$default(Ljava/lang/String;IIILjava/lang/Object;)I move-result v15 sget-object v2, Lokhttp3/HttpUrl$Builder;->Companion:Lokhttp3/HttpUrl$Builder$Companion; .line 1243 invoke-static {v2, v13, v1, v15}, Lokhttp3/HttpUrl$Builder$Companion;->access$schemeDelimiterOffset(Lokhttp3/HttpUrl$Builder$Companion;Ljava/lang/String;II)I move-result v4 const-string v12, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)" const/4 v11, 0x1 const/4 v10, -0x1 if-eq v4, v10, :cond_2 const-string v5, "https:" .line 1246 invoke-static {v13, v5, v1, v11}, Lkotlin/text/StringsKt;->startsWith(Ljava/lang/String;Ljava/lang/String;IZ)Z move-result v5 if-eqz v5, :cond_0 const-string v4, "https" iput-object v4, v0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; add-int/lit8 v1, v1, 0x6 goto :goto_0 :cond_0 const-string v5, "http:" .line 1250 invoke-static {v13, v5, v1, v11}, Lkotlin/text/StringsKt;->startsWith(Ljava/lang/String;Ljava/lang/String;IZ)Z move-result v5 if-eqz v5, :cond_1 const-string v4, "http" iput-object v4, v0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; add-int/lit8 v1, v1, 0x5 goto :goto_0 .line 1254 :cond_1 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Expected URL scheme \'http\' or \'https\' but was \'" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V .line 1255 invoke-virtual {v13, v14, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object v2 invoke-static {v2, v12}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, "\'" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 .line 1254 invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :cond_2 if-eqz p1, :cond_14 .line 1258 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->scheme()Ljava/lang/String; move-result-object v4 iput-object v4, v0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; .line 1267 :goto_0 invoke-static {v2, v13, v1, v15}, Lokhttp3/HttpUrl$Builder$Companion;->access$slashCount(Lokhttp3/HttpUrl$Builder$Companion;Ljava/lang/String;II)I move-result v2 const/16 v9, 0x3f const/16 v8, 0x23 if-ge v2, v3, :cond_6 if-eqz p1, :cond_6 .line 1268 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->scheme()Ljava/lang/String; move-result-object v3 iget-object v4, v0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v3 xor-int/2addr v3, v11 if-eqz v3, :cond_3 goto :goto_1 .line 1347 :cond_3 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->encodedUsername()Ljava/lang/String; move-result-object v2 iput-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; .line 1348 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->encodedPassword()Ljava/lang/String; move-result-object v2 iput-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; .line 1349 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String; move-result-object v2 iput-object v2, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; .line 1350 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->port()I move-result v2 iput v2, v0, Lokhttp3/HttpUrl$Builder;->port:I iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1351 invoke-interface {v2}, Ljava/util/List;->clear()V iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1352 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->encodedPathSegments()Ljava/util/List; move-result-object v3 check-cast v3, Ljava/util/Collection; invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z if-eq v1, v15, :cond_4 .line 1353 invoke-virtual {v13, v1}, Ljava/lang/String;->charAt(I)C move-result v2 if-ne v2, v8, :cond_5 .line 1354 :cond_4 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->encodedQuery()Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v2}, Lokhttp3/HttpUrl$Builder;->encodedQuery(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; :cond_5 move/from16 v18, v11 move/from16 v19, v15 goto/16 :goto_a :cond_6 :goto_1 add-int/2addr v1, v2 move v7, v1 move/from16 v16, v14 move/from16 v17, v16 :goto_2 const-string v1, "@/\\?#" .line 1280 invoke-static {v13, v1, v7, v15}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;Ljava/lang/String;II)I move-result v6 if-eq v6, v15, :cond_7 .line 1282 invoke-virtual {v13, v6}, Ljava/lang/String;->charAt(I)C move-result v1 goto :goto_3 :cond_7 move v1, v10 :goto_3 if-eq v1, v10, :cond_c if-eq v1, v8, :cond_c const/16 v2, 0x2f if-eq v1, v2, :cond_c const/16 v2, 0x5c if-eq v1, v2, :cond_c if-eq v1, v9, :cond_c const/16 v2, 0x40 if-eq v1, v2, :cond_8 move/from16 v18, v11 move-object/from16 v20, v12 move/from16 v19, v15 goto/16 :goto_6 :cond_8 const-string v5, "%40" if-nez v16, :cond_b const/16 v1, 0x3a .line 1290 invoke-static {v13, v1, v7, v6}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;CII)I move-result v4 .line 1291 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const-string v18, " \"\':;<=>@[]^`{}|/\\?#" const/16 v19, 0x1 const/16 v20, 0x0 const/16 v21, 0x0 const/16 v22, 0x0 const/16 v23, 0x0 const/16 v24, 0xf0 const/16 v25, 0x0 move-object/from16 v2, p2 move v3, v7 move v7, v4 move-object v14, v5 move-object/from16 v5, v18 move/from16 v27, v6 move/from16 v6, v19 move/from16 v28, v7 move/from16 v7, v20 move/from16 v8, v21 move/from16 v9, v22 move-object/from16 v10, v23 move/from16 v18, v11 move/from16 v11, v24 move/from16 v19, v15 move-object v15, v12 move-object/from16 v12, v25 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 if-eqz v17, :cond_9 .line 1298 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V iget-object v3, v0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 :cond_9 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; move/from16 v14, v27 move/from16 v1, v28 if-eq v1, v14, :cond_a .line 1304 sget-object v2, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; add-int/lit8 v3, v1, 0x1 const-string v5, " \"\':;<=>@[]^`{}|/\\?#" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xf0 const/4 v12, 0x0 move-object v1, v2 move-object/from16 v2, p2 move v4, v14 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; move/from16 v11, v18 goto :goto_4 :cond_a move/from16 v11, v16 :goto_4 move/from16 v16, v11 move-object/from16 v20, v15 move/from16 v11, v18 move v15, v14 goto :goto_5 :cond_b move-object v14, v5 move/from16 v18, v11 move/from16 v19, v15 move-object v15, v12 move v12, v6 .line 1313 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v14 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const-string v5, " \"\':;<=>@[]^`{}|/\\?#" const/4 v6, 0x1 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/4 v11, 0x0 const/16 v20, 0xf0 const/16 v21, 0x0 move-object/from16 v2, p2 move v3, v7 move v4, v12 move v7, v8 move v8, v9 move v9, v10 move-object v10, v11 move/from16 v11, v20 move-object/from16 v20, v15 move v15, v12 move-object/from16 v12, v21 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 invoke-virtual {v14, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; move/from16 v11, v17 :goto_5 add-int/lit8 v7, v15, 0x1 move/from16 v17, v11 :goto_6 move/from16 v11, v18 move/from16 v15, v19 move-object/from16 v12, v20 const/16 v8, 0x23 const/16 v9, 0x3f const/4 v10, -0x1 const/4 v14, 0x0 goto/16 :goto_2 :cond_c move/from16 v18, v11 move-object/from16 v20, v12 move/from16 v19, v15 move v15, v6 sget-object v8, Lokhttp3/HttpUrl$Builder;->Companion:Lokhttp3/HttpUrl$Builder$Companion; .line 1325 invoke-static {v8, v13, v7, v15}, Lokhttp3/HttpUrl$Builder$Companion;->access$portColonOffset(Lokhttp3/HttpUrl$Builder$Companion;Ljava/lang/String;II)I move-result v9 add-int/lit8 v10, v9, 0x1 const/16 v11, 0x22 if-ge v10, v15, :cond_f .line 1327 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v5, 0x0 const/4 v6, 0x4 const/4 v12, 0x0 move-object/from16 v2, p2 move v3, v7 move v4, v9 move v14, v7 move-object v7, v12 invoke-static/range {v1 .. v7}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v1 invoke-static {v1}, Lokhttp3/internal/HostnamesKt;->toCanonicalHost(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; .line 1328 invoke-static {v8, v13, v10, v15}, Lokhttp3/HttpUrl$Builder$Companion;->access$parsePort(Lokhttp3/HttpUrl$Builder$Companion;Ljava/lang/String;II)I move-result v1 iput v1, v0, Lokhttp3/HttpUrl$Builder;->port:I const/4 v2, -0x1 if-eq v1, v2, :cond_d move/from16 v1, v18 goto :goto_7 :cond_d const/4 v1, 0x0 :goto_7 if-eqz v1, :cond_e move-object/from16 v8, v20 goto :goto_8 .line 1330 :cond_e new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Invalid URL port: \"" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v13, v10, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object v1 move-object/from16 v8, v20 invoke-static {v1, v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 .line 1329 new-instance v1, Ljava/lang/IllegalArgumentException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :cond_f move v14, v7 move-object/from16 v8, v20 .line 1334 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v5, 0x0 const/4 v6, 0x4 const/4 v7, 0x0 move-object/from16 v2, p2 move v3, v14 move v4, v9 invoke-static/range {v1 .. v7}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String; move-result-object v1 invoke-static {v1}, Lokhttp3/internal/HostnamesKt;->toCanonicalHost(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; .line 1335 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v2, v0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v1, v2}, Lokhttp3/HttpUrl$Companion;->defaultPort(Ljava/lang/String;)I move-result v1 iput v1, v0, Lokhttp3/HttpUrl$Builder;->port:I :goto_8 iget-object v1, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; if-eqz v1, :cond_10 move/from16 v26, v18 goto :goto_9 :cond_10 const/16 v26, 0x0 :goto_9 if-eqz v26, :cond_13 move v1, v15 :goto_a const-string v2, "?#" move/from16 v14, v19 .line 1359 invoke-static {v13, v2, v1, v14}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;Ljava/lang/String;II)I move-result v2 .line 1360 invoke-direct {v0, v13, v1, v2}, Lokhttp3/HttpUrl$Builder;->resolvePath(Ljava/lang/String;II)V if-ge v2, v14, :cond_11 .line 1364 invoke-virtual {v13, v2}, Ljava/lang/String;->charAt(I)C move-result v1 const/16 v3, 0x3f if-ne v1, v3, :cond_11 const/16 v15, 0x23 .line 1365 invoke-static {v13, v15, v2, v14}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;CII)I move-result v16 .line 1366 sget-object v12, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; add-int/lit8 v3, v2, 0x1 const-string v5, " \"\'<>#" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xd0 const/16 v17, 0x0 move-object/from16 v2, p2 move/from16 v4, v16 move-object v15, v12 move-object/from16 v12, v17 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 .line 1372 invoke-virtual {v15, v1}, Lokhttp3/HttpUrl$Companion;->toQueryNamesAndValues$okhttp(Ljava/lang/String;)Ljava/util/List; move-result-object v1 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; move/from16 v2, v16 :cond_11 if-ge v2, v14, :cond_12 .line 1377 invoke-virtual {v13, v2}, Ljava/lang/String;->charAt(I)C move-result v1 const/16 v3, 0x23 if-ne v1, v3, :cond_12 .line 1378 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; add-int/lit8 v3, v2, 0x1 const-string v5, "" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x1 const/4 v10, 0x0 const/16 v11, 0xb0 const/4 v12, 0x0 move-object/from16 v2, p2 move v4, v14 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; :cond_12 return-object v0 .line 1338 :cond_13 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Invalid URL host: \"" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v13, v14, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object v1 invoke-static {v1, v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 .line 1337 new-instance v1, Ljava/lang/IllegalArgumentException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 .line 1260 :cond_14 new-instance v0, Ljava/lang/IllegalArgumentException; const-string v1, "Expected URL scheme \'http\' or \'https\' but no colon was found" invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public final password(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "password" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 945 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 946 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\':;<=>@[]^`{}|/\\?#" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xfb const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; return-object p0 .end method .method public final port(I)Lokhttp3/HttpUrl$Builder; .locals 2 .line 966 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; const/4 v0, 0x1 if-le v0, p1, :cond_0 goto :goto_0 :cond_0 const v1, 0xffff if-lt v1, p1, :cond_1 goto :goto_1 :cond_1 :goto_0 const/4 v0, 0x0 :goto_1 if-eqz v0, :cond_2 iput p1, p0, Lokhttp3/HttpUrl$Builder;->port:I return-object p0 .line 967 :cond_2 new-instance p0, Ljava/lang/StringBuilder; const-string v0, "unexpected port: " invoke-direct {p0, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public final query(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 .line 1038 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; if-eqz p1, :cond_0 .line 1042 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\'<>#" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xdb const/4 v12, 0x0 move-object v2, p1 .line 1039 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 if-eqz p1, :cond_0 sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; .line 1042 invoke-virtual {v0, p1}, Lokhttp3/HttpUrl$Companion;->toQueryNamesAndValues$okhttp(Ljava/lang/String;)Ljava/util/List; move-result-object p1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; return-object p0 .end method .method public final reencodeForUri$okhttp()Lokhttp3/HttpUrl$Builder; .locals 18 move-object/from16 v0, p0 .line 1141 move-object v1, v0 check-cast v1, Lokhttp3/HttpUrl$Builder; iget-object v1, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; const/4 v2, 0x0 if-eqz v1, :cond_0 .line 1142 check-cast v1, Ljava/lang/CharSequence; new-instance v3, Lkotlin/text/Regex; const-string v4, "[\"<>^`{|}]" invoke-direct {v3, v4}, Lkotlin/text/Regex;->(Ljava/lang/String;)V const-string v4, "" invoke-virtual {v3, v1, v4}, Lkotlin/text/Regex;->replace(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String; move-result-object v1 goto :goto_0 :cond_0 move-object v1, v2 :goto_0 iput-object v1, v0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; iget-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1144 invoke-interface {v1}, Ljava/util/List;->size()I move-result v1 const/4 v3, 0x0 move v4, v3 :goto_1 if-ge v4, v1, :cond_1 iget-object v5, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1145 sget-object v6, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v7, v0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; invoke-interface {v7, v4}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v7 check-cast v7, Ljava/lang/String; const/4 v8, 0x0 const/4 v9, 0x0 const-string v10, "[]" const/4 v11, 0x1 const/4 v12, 0x1 const/4 v13, 0x0 const/4 v14, 0x0 const/4 v15, 0x0 const/16 v16, 0xe3 const/16 v17, 0x0 invoke-static/range {v6 .. v17}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v6 invoke-interface {v5, v4, v6}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; add-int/lit8 v4, v4, 0x1 goto :goto_1 :cond_1 iget-object v1, v0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; if-eqz v1, :cond_3 .line 1154 invoke-interface {v1}, Ljava/util/List;->size()I move-result v4 :goto_2 if-ge v3, v4, :cond_3 .line 1155 invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v5 move-object v7, v5 check-cast v7, Ljava/lang/String; if-eqz v7, :cond_2 sget-object v6, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v8, 0x0 const/4 v9, 0x0 const-string v10, "\\^`{|}" const/4 v11, 0x1 const/4 v12, 0x1 const/4 v13, 0x1 const/4 v14, 0x0 const/4 v15, 0x0 const/16 v16, 0xc3 const/16 v17, 0x0 invoke-static/range {v6 .. v17}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v5 goto :goto_3 :cond_2 move-object v5, v2 :goto_3 invoke-interface {v1, v3, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; add-int/lit8 v3, v3, 0x1 goto :goto_2 :cond_3 iget-object v6, v0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; if-eqz v6, :cond_4 .line 1164 sget-object v5, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v7, 0x0 const/4 v8, 0x0 const-string v9, " \"#<>\\^`{|}" const/4 v10, 0x1 const/4 v11, 0x1 const/4 v12, 0x0 const/4 v13, 0x1 const/4 v14, 0x0 const/16 v15, 0xa3 const/16 v16, 0x0 invoke-static/range {v5 .. v16}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v2 :cond_4 iput-object v2, v0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; return-object v0 .end method .method public final removeAllEncodedQueryParameters(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "encodedName" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1100 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; if-nez v0, :cond_0 return-object p0 .line 1102 :cond_0 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\'<>#&=" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xd3 const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Lokhttp3/HttpUrl$Builder;->removeAllCanonicalQueryParameters(Ljava/lang/String;)V return-object p0 .end method .method public final removeAllQueryParameters(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1091 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; if-nez v0, :cond_0 return-object p0 .line 1093 :cond_0 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xdb const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 .line 1097 invoke-direct {p0, p1}, Lokhttp3/HttpUrl$Builder;->removeAllCanonicalQueryParameters(Ljava/lang/String;)V return-object p0 .end method .method public final removePathSegment(I)Lokhttp3/HttpUrl$Builder; .locals 1 .line 1026 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; iget-object v0, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1027 invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object; iget-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1028 invoke-interface {p1}, Ljava/util/List;->isEmpty()Z move-result p1 if-eqz p1, :cond_0 iget-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; const-string v0, "" .line 1029 invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_0 return-object p0 .end method .method public final scheme(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 3 const-string v0, "scheme" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 926 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; const-string v0, "http" const/4 v1, 0x1 .line 928 invoke-static {p1, v0, v1}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result v2 if-eqz v2, :cond_0 iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; goto :goto_0 :cond_0 const-string v0, "https" .line 929 invoke-static {p1, v0, v1}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result v1 if-eqz v1, :cond_1 iput-object v0, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; :goto_0 return-object p0 .line 930 :cond_1 new-instance p0, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; const-string v1, "unexpected scheme: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public final setEncodedFragment$okhttp(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; return-void .end method .method public final setEncodedPassword$okhttp(Ljava/lang/String;)V .locals 1 const-string v0, "" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; return-void .end method .method public final setEncodedPathSegment(ILjava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "encodedPathSegment" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1015 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 1016 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"<>^`{}|/\\?#" const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xf3 const/4 v12, 0x0 move-object v2, p2 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v0 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1020 invoke-interface {v1, p1, v0}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; .line 1021 invoke-direct {p0, v0}, Lokhttp3/HttpUrl$Builder;->isDot(Ljava/lang/String;)Z move-result p1 if-nez p1, :cond_0 invoke-direct {p0, v0}, Lokhttp3/HttpUrl$Builder;->isDotDot(Ljava/lang/String;)Z move-result p1 if-nez p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 if-eqz p1, :cond_1 return-object p0 .line 1022 :cond_1 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "unexpected path segment: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 1021 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public final setEncodedQueryNamesAndValues$okhttp(Ljava/util/List;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "Ljava/lang/String;", ">;)V" } .end annotation iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; return-void .end method .method public final setEncodedQueryParameter(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 1 const-string v0, "encodedName" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1086 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 1087 invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Builder;->removeAllEncodedQueryParameters(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .line 1088 invoke-virtual {p0, p1, p2}, Lokhttp3/HttpUrl$Builder;->addEncodedQueryParameter(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; return-object p0 .end method .method public final setEncodedUsername$okhttp(Ljava/lang/String;)V .locals 1 const-string v0, "" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; return-void .end method .method public final setHost$okhttp(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; return-void .end method .method public final setPathSegment(ILjava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "pathSegment" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1007 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 1008 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"<>^`{}|/\\?#" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xfb const/4 v12, 0x0 move-object v2, p2 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object v0 .line 1009 invoke-direct {p0, v0}, Lokhttp3/HttpUrl$Builder;->isDot(Ljava/lang/String;)Z move-result v1 if-nez v1, :cond_0 invoke-direct {p0, v0}, Lokhttp3/HttpUrl$Builder;->isDotDot(Ljava/lang/String;)Z move-result v1 if-nez v1, :cond_0 const/4 v1, 0x1 goto :goto_0 :cond_0 const/4 v1, 0x0 :goto_0 if-eqz v1, :cond_1 iget-object p2, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; .line 1012 invoke-interface {p2, p1, v0}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; return-object p0 .line 1010 :cond_1 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "unexpected path segment: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 1009 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public final setPort$okhttp(I)V .locals 0 iput p1, p0, Lokhttp3/HttpUrl$Builder;->port:I return-void .end method .method public final setQueryParameter(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 1 const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1081 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 1082 invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Builder;->removeAllQueryParameters(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .line 1083 invoke-virtual {p0, p1, p2}, Lokhttp3/HttpUrl$Builder;->addQueryParameter(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; return-object p0 .end method .method public final setScheme$okhttp(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; return-void .end method .method public toString()Ljava/lang/String; .locals 6 .line 1188 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; if-eqz v1, :cond_0 .line 1190 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, "://" .line 1191 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; goto :goto_0 :cond_0 const-string v1, "//" .line 1193 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :goto_0 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; .line 1196 check-cast v1, Ljava/lang/CharSequence; invoke-interface {v1}, Ljava/lang/CharSequence;->length()I move-result v1 const/16 v2, 0x3a if-lez v1, :cond_1 goto :goto_1 :cond_1 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; check-cast v1, Ljava/lang/CharSequence; invoke-interface {v1}, Ljava/lang/CharSequence;->length()I move-result v1 if-lez v1, :cond_3 :goto_1 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; .line 1197 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; .line 1198 check-cast v1, Ljava/lang/CharSequence; invoke-interface {v1}, Ljava/lang/CharSequence;->length()I move-result v1 if-lez v1, :cond_2 .line 1199 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedPassword:Ljava/lang/String; .line 1200 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_2 const/16 v1, 0x40 .line 1202 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; :cond_3 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; if-eqz v1, :cond_5 .line 1206 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V check-cast v1, Ljava/lang/CharSequence; const/4 v3, 0x2 const/4 v4, 0x0 const/4 v5, 0x0 invoke-static {v1, v2, v5, v3, v4}, Lkotlin/text/StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z move-result v1 if-eqz v1, :cond_4 const/16 v1, 0x5b .line 1208 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; .line 1209 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const/16 v1, 0x5d .line 1210 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; goto :goto_2 :cond_4 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->host:Ljava/lang/String; .line 1212 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_5 :goto_2 iget v1, p0, Lokhttp3/HttpUrl$Builder;->port:I const/4 v3, -0x1 if-ne v1, v3, :cond_6 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; if-eqz v1, :cond_8 .line 1217 :cond_6 invoke-direct {p0}, Lokhttp3/HttpUrl$Builder;->effectivePort()I move-result v1 iget-object v3, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; if-eqz v3, :cond_7 .line 1218 sget-object v3, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v4, p0, Lokhttp3/HttpUrl$Builder;->scheme:Ljava/lang/String; invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v3, v4}, Lokhttp3/HttpUrl$Companion;->defaultPort(Ljava/lang/String;)I move-result v3 if-eq v1, v3, :cond_8 .line 1219 :cond_7 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; .line 1220 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; .line 1224 :cond_8 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v2, p0, Lokhttp3/HttpUrl$Builder;->encodedPathSegments:Ljava/util/List; invoke-virtual {v1, v2, v0}, Lokhttp3/HttpUrl$Companion;->toPathString$okhttp(Ljava/util/List;Ljava/lang/StringBuilder;)V iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; if-eqz v1, :cond_9 const/16 v1, 0x3f .line 1227 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; .line 1228 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; iget-object v2, p0, Lokhttp3/HttpUrl$Builder;->encodedQueryNamesAndValues:Ljava/util/List; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v1, v2, v0}, Lokhttp3/HttpUrl$Companion;->toQueryString$okhttp(Ljava/util/List;Ljava/lang/StringBuilder;)V :cond_9 iget-object v1, p0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; if-eqz v1, :cond_a const/16 v1, 0x23 .line 1232 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; iget-object p0, p0, Lokhttp3/HttpUrl$Builder;->encodedFragment:Ljava/lang/String; .line 1233 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 1188 :cond_a 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 username(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder; .locals 13 const-string v0, "username" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 934 move-object v0, p0 check-cast v0, Lokhttp3/HttpUrl$Builder; .line 935 sget-object v1, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; const/4 v3, 0x0 const/4 v4, 0x0 const-string v5, " \"\':;<=>@[]^`{}|/\\?#" const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/16 v11, 0xfb const/4 v12, 0x0 move-object v2, p1 invoke-static/range {v1 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lokhttp3/HttpUrl$Builder;->encodedUsername:Ljava/lang/String; return-object p0 .end method