.class final Lb/l; .super Ljava/lang/Object; .source "RequestBuilder.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lb/l$a; } .end annotation # static fields .field private static final btv:[C # instance fields .field private final bGS:Lokhttp3/s; .field bGT:Ljava/lang/String; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private bGU:Lokhttp3/s$a; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private final bGV:Lokhttp3/w$a; .field private final bGW:Z .field bGX:Lokhttp3/MultipartBody$a; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private bGY:Lokhttp3/q$a; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private btU:Lokhttp3/MediaType; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field btY:Lokhttp3/RequestBody; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private final method:Ljava/lang/String; # direct methods .method static constructor ()V .locals 1 const/16 v0, 0x10 new-array v0, v0, [C fill-array-data v0, :array_0 sput-object v0, Lb/l;->btv:[C return-void :array_0 .array-data 2 0x30s 0x31s 0x32s 0x33s 0x34s 0x35s 0x36s 0x37s 0x38s 0x39s 0x41s 0x42s 0x43s 0x44s 0x45s 0x46s .end array-data .end method .method constructor (Ljava/lang/String;Lokhttp3/s;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V .locals 0 .param p3 # Ljava/lang/String; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p4 # Lokhttp3/Headers; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p5 # Lokhttp3/MediaType; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lb/l;->method:Ljava/lang/String; iput-object p2, p0, Lb/l;->bGS:Lokhttp3/s; iput-object p3, p0, Lb/l;->bGT:Ljava/lang/String; new-instance p1, Lokhttp3/w$a; invoke-direct {p1}, Lokhttp3/w$a;->()V iput-object p1, p0, Lb/l;->bGV:Lokhttp3/w$a; iput-object p5, p0, Lb/l;->btU:Lokhttp3/MediaType; iput-boolean p6, p0, Lb/l;->bGW:Z if-eqz p4, :cond_0 iget-object p1, p0, Lb/l;->bGV:Lokhttp3/w$a; invoke-virtual {p1, p4}, Lokhttp3/w$a;->b(Lokhttp3/Headers;)Lokhttp3/w$a; :cond_0 if-eqz p7, :cond_1 new-instance p1, Lokhttp3/q$a; invoke-direct {p1}, Lokhttp3/q$a;->()V iput-object p1, p0, Lb/l;->bGY:Lokhttp3/q$a; return-void :cond_1 if-eqz p8, :cond_4 new-instance p1, Lokhttp3/MultipartBody$a; invoke-direct {p1}, Lokhttp3/MultipartBody$a;->()V iput-object p1, p0, Lb/l;->bGX:Lokhttp3/MultipartBody$a; iget-object p1, p0, Lb/l;->bGX:Lokhttp3/MultipartBody$a; sget-object p2, Lokhttp3/MultipartBody;->btO:Lokhttp3/MediaType; if-eqz p2, :cond_3 iget-object p3, p2, Lokhttp3/MediaType;->type:Ljava/lang/String; const-string p4, "multipart" invoke-virtual {p3, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p3 if-eqz p3, :cond_2 iput-object p2, p1, Lokhttp3/MultipartBody$a;->btW:Lokhttp3/MediaType; goto :goto_0 :cond_2 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p2 const-string p3, "multipart != " invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 :cond_3 new-instance p1, Ljava/lang/NullPointerException; const-string p2, "type == null" invoke-direct {p1, p2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p1 :cond_4 :goto_0 return-void .end method .method static k(Ljava/lang/String;Z)Ljava/lang/String; .locals 14 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_8 invoke-virtual {p0, v2}, Ljava/lang/String;->codePointAt(I)I move-result v3 const/16 v4, 0x2f const/4 v5, -0x1 const-string v6, " \"<>^`{}|\\?#" const/16 v7, 0x7f const/16 v8, 0x20 const/16 v9, 0x25 if-lt v3, v8, :cond_1 if-ge v3, v7, :cond_1 invoke-virtual {v6, v3}, Ljava/lang/String;->indexOf(I)I move-result v10 if-ne v10, v5, :cond_1 if-nez p1, :cond_0 if-eq v3, v4, :cond_1 if-ne v3, v9, :cond_0 goto :goto_1 :cond_0 invoke-static {v3}, Ljava/lang/Character;->charCount(I)I move-result v3 add-int/2addr v2, v3 goto :goto_0 :cond_1 :goto_1 new-instance v3, Lokio/c; invoke-direct {v3}, Lokio/c;->()V invoke-virtual {v3, p0, v1, v2}, Lokio/c;->o(Ljava/lang/String;II)Lokio/c; const/4 v1, 0x0 :goto_2 if-ge v2, v0, :cond_7 invoke-virtual {p0, v2}, Ljava/lang/String;->codePointAt(I)I move-result v10 if-eqz p1, :cond_2 const/16 v11, 0x9 if-eq v10, v11, :cond_6 const/16 v11, 0xa if-eq v10, v11, :cond_6 const/16 v11, 0xc if-eq v10, v11, :cond_6 const/16 v11, 0xd if-eq v10, v11, :cond_6 :cond_2 if-lt v10, v8, :cond_4 if-ge v10, v7, :cond_4 invoke-virtual {v6, v10}, Ljava/lang/String;->indexOf(I)I move-result v11 if-ne v11, v5, :cond_4 if-nez p1, :cond_3 if-eq v10, v4, :cond_4 if-ne v10, v9, :cond_3 goto :goto_3 :cond_3 invoke-virtual {v3, v10}, Lokio/c;->dP(I)Lokio/c; goto :goto_5 :cond_4 :goto_3 if-nez v1, :cond_5 new-instance v1, Lokio/c; invoke-direct {v1}, Lokio/c;->()V :cond_5 invoke-virtual {v1, v10}, Lokio/c;->dP(I)Lokio/c; :goto_4 invoke-virtual {v1}, Lokio/c;->Ik()Z move-result v11 if-nez v11, :cond_6 invoke-virtual {v1}, Lokio/c;->readByte()B move-result v11 and-int/lit16 v11, v11, 0xff invoke-virtual {v3, v9}, Lokio/c;->dQ(I)Lokio/c; sget-object v12, Lb/l;->btv:[C shr-int/lit8 v13, v11, 0x4 and-int/lit8 v13, v13, 0xf aget-char v12, v12, v13 invoke-virtual {v3, v12}, Lokio/c;->dQ(I)Lokio/c; sget-object v12, Lb/l;->btv:[C and-int/lit8 v11, v11, 0xf aget-char v11, v12, v11 invoke-virtual {v3, v11}, Lokio/c;->dQ(I)Lokio/c; goto :goto_4 :cond_6 :goto_5 invoke-static {v10}, Ljava/lang/Character;->charCount(I)I move-result v10 add-int/2addr v2, v10 goto :goto_2 :cond_7 invoke-virtual {v3}, Lokio/c;->Iq()Ljava/lang/String; move-result-object p0 :cond_8 return-object p0 .end method # virtual methods .method final GS()Lokhttp3/w; .locals 5 iget-object v0, p0, Lb/l;->bGU:Lokhttp3/s$a; if-eqz v0, :cond_0 invoke-virtual {v0}, Lokhttp3/s$a;->GC()Lokhttp3/s; move-result-object v0 goto :goto_0 :cond_0 iget-object v0, p0, Lb/l;->bGS:Lokhttp3/s; iget-object v1, p0, Lb/l;->bGT:Ljava/lang/String; invoke-virtual {v0, v1}, Lokhttp3/s;->eg(Ljava/lang/String;)Lokhttp3/s; move-result-object v0 if-eqz v0, :cond_7 :goto_0 iget-object v1, p0, Lb/l;->btY:Lokhttp3/RequestBody; if-nez v1, :cond_4 iget-object v2, p0, Lb/l;->bGY:Lokhttp3/q$a; if-eqz v2, :cond_1 new-instance v1, Lokhttp3/q; iget-object v3, v2, Lokhttp3/q$a;->names:Ljava/util/List; iget-object v2, v2, Lokhttp3/q$a;->btn:Ljava/util/List; invoke-direct {v1, v3, v2}, Lokhttp3/q;->(Ljava/util/List;Ljava/util/List;)V goto :goto_1 :cond_1 iget-object v2, p0, Lb/l;->bGX:Lokhttp3/MultipartBody$a; if-eqz v2, :cond_3 iget-object v1, v2, Lokhttp3/MultipartBody$a;->btV:Ljava/util/List; invoke-interface {v1}, Ljava/util/List;->isEmpty()Z move-result v1 if-nez v1, :cond_2 new-instance v1, Lokhttp3/MultipartBody; iget-object v3, v2, Lokhttp3/MultipartBody$a;->btS:Lokio/ByteString; iget-object v4, v2, Lokhttp3/MultipartBody$a;->btW:Lokhttp3/MediaType; iget-object v2, v2, Lokhttp3/MultipartBody$a;->btV:Ljava/util/List; invoke-direct {v1, v3, v4, v2}, Lokhttp3/MultipartBody;->(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V goto :goto_1 :cond_2 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "Multipart body must have at least one part." invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 :cond_3 iget-boolean v2, p0, Lb/l;->bGW:Z if-eqz v2, :cond_4 const/4 v1, 0x0 const/4 v2, 0x0 new-array v2, v2, [B invoke-static {v1, v2}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody; move-result-object v1 :cond_4 :goto_1 iget-object v2, p0, Lb/l;->btU:Lokhttp3/MediaType; if-eqz v2, :cond_6 if-eqz v1, :cond_5 new-instance v3, Lb/l$a; invoke-direct {v3, v1, v2}, Lb/l$a;->(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V move-object v1, v3 goto :goto_2 :cond_5 iget-object v3, p0, Lb/l;->bGV:Lokhttp3/w$a; invoke-virtual {v2}, Lokhttp3/MediaType;->toString()Ljava/lang/String; move-result-object v2 const-string v4, "Content-Type" invoke-virtual {v3, v4, v2}, Lokhttp3/w$a;->aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a; :cond_6 :goto_2 iget-object v2, p0, Lb/l;->bGV:Lokhttp3/w$a; invoke-virtual {v2, v0}, Lokhttp3/w$a;->b(Lokhttp3/s;)Lokhttp3/w$a; move-result-object v0 iget-object v2, p0, Lb/l;->method:Ljava/lang/String; invoke-virtual {v0, v2, v1}, Lokhttp3/w$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/w$a; move-result-object v0 invoke-virtual {v0}, Lokhttp3/w$a;->GS()Lokhttp3/w; move-result-object v0 return-object v0 :cond_7 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Malformed URL. Base: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v2, p0, Lb/l;->bGS:Lokhttp3/s; invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string v2, ", Relative: " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v2, p0, Lb/l;->bGT:Ljava/lang/String; invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method final addHeader(Ljava/lang/String;Ljava/lang/String;)V .locals 1 const-string v0, "Content-Type" invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_1 invoke-static {p2}, Lokhttp3/MediaType;->em(Ljava/lang/String;)Lokhttp3/MediaType; move-result-object p1 if-eqz p1, :cond_0 iput-object p1, p0, Lb/l;->btU:Lokhttp3/MediaType; return-void :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p2 const-string v0, "Malformed content type: " invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 :cond_1 iget-object v0, p0, Lb/l;->bGV:Lokhttp3/w$a; invoke-virtual {v0, p1, p2}, Lokhttp3/w$a;->aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a; return-void .end method .method final c(Lokhttp3/Headers;Lokhttp3/RequestBody;)V .locals 1 iget-object v0, p0, Lb/l;->bGX:Lokhttp3/MultipartBody$a; invoke-virtual {v0, p1, p2}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$a; return-void .end method .method final e(Ljava/lang/String;Ljava/lang/String;Z)V .locals 2 .param p2 # Ljava/lang/String; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param iget-object v0, p0, Lb/l;->bGT:Ljava/lang/String; if-eqz v0, :cond_1 iget-object v1, p0, Lb/l;->bGS:Lokhttp3/s; invoke-virtual {v1, v0}, Lokhttp3/s;->eh(Ljava/lang/String;)Lokhttp3/s$a; move-result-object v0 iput-object v0, p0, Lb/l;->bGU:Lokhttp3/s$a; iget-object v0, p0, Lb/l;->bGU:Lokhttp3/s$a; if-eqz v0, :cond_0 const/4 v0, 0x0 iput-object v0, p0, Lb/l;->bGT:Ljava/lang/String; goto :goto_0 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; new-instance p2, Ljava/lang/StringBuilder; const-string p3, "Malformed URL. Base: " invoke-direct {p2, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object p3, p0, Lb/l;->bGS:Lokhttp3/s; invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p3, ", Relative: " invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object p3, p0, Lb/l;->bGT:Ljava/lang/String; invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 :cond_1 :goto_0 if-eqz p3, :cond_2 iget-object p3, p0, Lb/l;->bGU:Lokhttp3/s$a; invoke-virtual {p3, p1, p2}, Lokhttp3/s$a;->ao(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/s$a; return-void :cond_2 iget-object p3, p0, Lb/l;->bGU:Lokhttp3/s$a; invoke-virtual {p3, p1, p2}, Lokhttp3/s$a;->an(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/s$a; return-void .end method .method final f(Ljava/lang/String;Ljava/lang/String;Z)V .locals 0 if-eqz p3, :cond_0 iget-object p3, p0, Lb/l;->bGY:Lokhttp3/q$a; invoke-virtual {p3, p1, p2}, Lokhttp3/q$a;->ai(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/q$a; return-void :cond_0 iget-object p3, p0, Lb/l;->bGY:Lokhttp3/q$a; invoke-virtual {p3, p1, p2}, Lokhttp3/q$a;->ah(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/q$a; return-void .end method