.class public final Lq0/m; .super Ljava/lang/Object; .source "RequestBuilder.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lq0/m$a; } .end annotation # static fields .field public static final k:[C # instance fields .field public final a:Ljava/lang/String; .field public final b:Ln0/w; .field public c:Ljava/lang/String; .field public d:Ln0/w$a; .field public final e:Ln0/a0$a; .field public f:Lokhttp3/MediaType; .field public final g:Z .field public h:Lokhttp3/MultipartBody$a; .field public i:Ln0/u$a; .field public j:Lokhttp3/RequestBody; # direct methods .method public static constructor ()V .locals 1 const/16 v0, 0x10 new-array v0, v0, [C fill-array-data v0, :array_0 sput-object v0, Lq0/m;->k:[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 public constructor (Ljava/lang/String;Ln0/w;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lq0/m;->a:Ljava/lang/String; iput-object p2, p0, Lq0/m;->b:Ln0/w; iput-object p3, p0, Lq0/m;->c:Ljava/lang/String; new-instance p1, Ln0/a0$a; invoke-direct {p1}, Ln0/a0$a;->()V iput-object p1, p0, Lq0/m;->e:Ln0/a0$a; iput-object p5, p0, Lq0/m;->f:Lokhttp3/MediaType; iput-boolean p6, p0, Lq0/m;->g:Z if-eqz p4, :cond_0 invoke-virtual {p4}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a; move-result-object p2 iput-object p2, p1, Ln0/a0$a;->c:Lokhttp3/Headers$a; :cond_0 if-eqz p7, :cond_1 new-instance p1, Ln0/u$a; invoke-direct {p1}, Ln0/u$a;->()V iput-object p1, p0, Lq0/m;->i:Ln0/u$a; goto :goto_0 :cond_1 if-eqz p8, :cond_2 new-instance p1, Lokhttp3/MultipartBody$a; invoke-direct {p1}, Lokhttp3/MultipartBody$a;->()V iput-object p1, p0, Lq0/m;->h:Lokhttp3/MultipartBody$a; sget-object p2, Lokhttp3/MultipartBody;->g:Lokhttp3/MediaType; invoke-virtual {p1, p2}, Lokhttp3/MultipartBody$a;->c(Lokhttp3/MediaType;)Lokhttp3/MultipartBody$a; :cond_2 :goto_0 return-void .end method # virtual methods .method public a(Ljava/lang/String;Ljava/lang/String;Z)V .locals 25 move-object/from16 v0, p0 const/4 v1, 0x0 const-string v2, "name" if-eqz p3, :cond_1 iget-object v12, v0, Lq0/m;->i:Ln0/u$a; if-eqz p1, :cond_0 iget-object v13, v12, Ln0/u$a;->a:Ljava/util/List; sget-object v1, Ln0/w;->l:Ln0/w$b; const/16 v17, 0x0 const/4 v4, 0x0 const/16 v19, 0x1 const/16 v20, 0x0 const/16 v21, 0x1 const/16 v22, 0x0 iget-object v10, v12, Ln0/u$a;->c:Ljava/nio/charset/Charset; const/16 v24, 0x53 const/16 v16, 0x0 const/4 v3, 0x0 const/4 v6, 0x1 const/4 v7, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/16 v11, 0x53 const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~" move-object/from16 v2, p1 invoke-static/range {v1 .. v11}, Ln0/w$b;->a(Ln0/w$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String; move-result-object v1 invoke-interface {v13, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z iget-object v1, v12, Ln0/u$a;->b:Ljava/util/List; sget-object v14, Ln0/w;->l:Ln0/w$b; iget-object v2, v12, Ln0/u$a;->c:Ljava/nio/charset/Charset; const-string v18, " \"\':;<=>@[]^`{}|/\\?#&!$(),~" move-object/from16 v15, p2 move-object/from16 v23, v2 invoke-static/range {v14 .. v24}, Ln0/w$b;->a(Ln0/w$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String; move-result-object v2 invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_0 :cond_0 invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v1 :cond_1 iget-object v12, v0, Lq0/m;->i:Ln0/u$a; if-eqz p1, :cond_2 iget-object v13, v12, Ln0/u$a;->a:Ljava/util/List; sget-object v1, Ln0/w;->l:Ln0/w$b; const/16 v17, 0x0 const/4 v4, 0x0 const/16 v20, 0x0 const/4 v7, 0x0 const/16 v21, 0x1 const/16 v22, 0x0 iget-object v10, v12, Ln0/u$a;->c:Ljava/nio/charset/Charset; const/16 v24, 0x5b const/16 v16, 0x0 const/16 v19, 0x0 const/4 v3, 0x0 const/4 v6, 0x0 const/4 v8, 0x1 const/4 v9, 0x0 const/16 v11, 0x5b const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~" move-object/from16 v2, p1 invoke-static/range {v1 .. v11}, Ln0/w$b;->a(Ln0/w$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String; move-result-object v1 invoke-interface {v13, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z iget-object v1, v12, Ln0/u$a;->b:Ljava/util/List; sget-object v14, Ln0/w;->l:Ln0/w$b; iget-object v2, v12, Ln0/u$a;->c:Ljava/nio/charset/Charset; const-string v18, " \"\':;<=>@[]^`{}|/\\?#&!$(),~" move-object/from16 v15, p2 move-object/from16 v23, v2 invoke-static/range {v14 .. v24}, Ln0/w$b;->a(Ln0/w$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String; move-result-object v2 invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z :goto_0 return-void :cond_2 invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v1 .end method .method public b(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;->c(Ljava/lang/String;)Lokhttp3/MediaType; move-result-object p1 if-eqz p1, :cond_0 iput-object p1, p0, Lq0/m;->f:Lokhttp3/MediaType; goto :goto_0 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Malformed content type: " invoke-static {v0, p2}, Lf/e/b/a/a;->p(Ljava/lang/String;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, Lq0/m;->e:Ln0/a0$a; invoke-virtual {v0, p1, p2}, Ln0/a0$a;->a(Ljava/lang/String;Ljava/lang/String;)Ln0/a0$a; :goto_0 return-void .end method .method public c(Lokhttp3/Headers;Lokhttp3/RequestBody;)V .locals 5 iget-object v0, p0, Lq0/m;->h:Lokhttp3/MultipartBody$a; const/4 v1, 0x0 if-eqz v0, :cond_7 if-eqz p2, :cond_6 if-eqz p1, :cond_0 const-string v2, "Content-Type" invoke-virtual {p1, v2}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 goto :goto_0 :cond_0 move-object v2, v1 :goto_0 const/4 v3, 0x0 const/4 v4, 0x1 if-nez v2, :cond_1 const/4 v2, 0x1 goto :goto_1 :cond_1 const/4 v2, 0x0 :goto_1 if-eqz v2, :cond_5 if-eqz p1, :cond_2 const-string v2, "Content-Length" invoke-virtual {p1, v2}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 goto :goto_2 :cond_2 move-object v2, v1 :goto_2 if-nez v2, :cond_3 const/4 v3, 0x1 :cond_3 if-eqz v3, :cond_4 new-instance v2, Lokhttp3/MultipartBody$Part; invoke-direct {v2, p1, p2, v1}, Lokhttp3/MultipartBody$Part;->(Lokhttp3/Headers;Lokhttp3/RequestBody;Lkotlin/jvm/internal/DefaultConstructorMarker;)V invoke-virtual {v0, v2}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/MultipartBody$Part;)Lokhttp3/MultipartBody$a; return-void :cond_4 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Unexpected header: Content-Length" invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 :cond_5 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Unexpected header: Content-Type" invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 :cond_6 const-string p1, "body" invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v1 :cond_7 throw v1 .end method .method public d(Ljava/lang/String;Ljava/lang/String;Z)V .locals 16 move-object/from16 v0, p0 move-object/from16 v2, p1 move-object/from16 v12, p2 iget-object v1, v0, Lq0/m;->c:Ljava/lang/String; const/4 v13, 0x0 if-eqz v1, :cond_1 iget-object v3, v0, Lq0/m;->b:Ln0/w; invoke-virtual {v3, v1}, Ln0/w;->g(Ljava/lang/String;)Ln0/w$a; move-result-object v1 iput-object v1, v0, Lq0/m;->d:Ln0/w$a; if-eqz v1, :cond_0 iput-object v13, v0, Lq0/m;->c:Ljava/lang/String; goto :goto_0 :cond_0 new-instance v1, Ljava/lang/IllegalArgumentException; const-string v2, "Malformed URL. Base: " invoke-static {v2}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 iget-object v3, v0, Lq0/m;->b:Ln0/w; invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string v3, ", Relative: " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v3, v0, Lq0/m;->c:Ljava/lang/String; invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v1 :cond_1 :goto_0 if-eqz p3, :cond_2 iget-object v1, v0, Lq0/m;->d:Ln0/w$a; invoke-virtual {v1, v2, v12}, Ln0/w$a;->a(Ljava/lang/String;Ljava/lang/String;)Ln0/w$a; goto :goto_1 :cond_2 iget-object v14, v0, Lq0/m;->d:Ln0/w$a; if-eqz v2, :cond_7 iget-object v1, v14, Ln0/w$a;->g:Ljava/util/List; if-nez v1, :cond_3 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;->()V iput-object v1, v14, Ln0/w$a;->g:Ljava/util/List; :cond_3 iget-object v15, v14, Ln0/w$a;->g:Ljava/util/List; if-eqz v15, :cond_6 sget-object v1, Ln0/w;->l:Ln0/w$b; const/4 v3, 0x0 const/4 v4, 0x0 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-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~" move-object/from16 v2, p1 invoke-static/range {v1 .. v11}, Ln0/w$b;->a(Ln0/w$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String; move-result-object v1 invoke-interface {v15, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z iget-object v14, v14, Ln0/w$a;->g:Ljava/util/List; if-eqz v14, :cond_5 if-eqz v12, :cond_4 sget-object v1, Ln0/w;->l:Ln0/w$b; const/4 v3, 0x0 const/4 v4, 0x0 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-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~" move-object/from16 v2, p2 invoke-static/range {v1 .. v11}, Ln0/w$b;->a(Ln0/w$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String; move-result-object v13 :cond_4 invoke-interface {v14, v13}, Ljava/util/List;->add(Ljava/lang/Object;)Z :goto_1 return-void :cond_5 invoke-static {}, Lj0/n/c/h;->throwNpe()V throw v13 :cond_6 invoke-static {}, Lj0/n/c/h;->throwNpe()V throw v13 :cond_7 const-string v1, "name" invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v13 .end method