123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- .class public final Lokhttp3/FormBody$Builder;
- .super Ljava/lang/Object;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lokhttp3/FormBody;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x19
- name = "Builder"
- .end annotation
- # instance fields
- .field private final charset:Ljava/nio/charset/Charset;
- .field private final names:Ljava/util/List;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/List<",
- "Ljava/lang/String;",
- ">;"
- }
- .end annotation
- .end field
- .field private final values:Ljava/util/List;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/List<",
- "Ljava/lang/String;",
- ">;"
- }
- .end annotation
- .end field
- # direct methods
- .method public constructor <init>()V
- .locals 1
- const/4 v0, 0x0
- invoke-direct {p0, v0}, Lokhttp3/FormBody$Builder;-><init>(Ljava/nio/charset/Charset;)V
- return-void
- .end method
- .method public constructor <init>(Ljava/nio/charset/Charset;)V
- .locals 1
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
- iput-object v0, p0, Lokhttp3/FormBody$Builder;->names:Ljava/util/List;
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
- iput-object v0, p0, Lokhttp3/FormBody$Builder;->values:Ljava/util/List;
- iput-object p1, p0, Lokhttp3/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
- return-void
- .end method
- # virtual methods
- .method public add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;
- .locals 8
- iget-object v0, p0, Lokhttp3/FormBody$Builder;->names:Ljava/util/List;
- iget-object v7, p0, Lokhttp3/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
- const-string v2, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
- const/4 v3, 0x0
- const/4 v4, 0x0
- const/4 v5, 0x1
- const/4 v6, 0x1
- move-object v1, p1
- invoke-static/range {v1 .. v7}, Lokhttp3/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
- move-result-object p1
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- iget-object p1, p0, Lokhttp3/FormBody$Builder;->values:Ljava/util/List;
- iget-object v6, p0, Lokhttp3/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
- const-string v1, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
- const/4 v2, 0x0
- const/4 v4, 0x1
- move-object v0, p2
- invoke-static/range {v0 .. v6}, Lokhttp3/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
- move-result-object p2
- invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- return-object p0
- .end method
- .method public addEncoded(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;
- .locals 8
- iget-object v0, p0, Lokhttp3/FormBody$Builder;->names:Ljava/util/List;
- iget-object v7, p0, Lokhttp3/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
- const-string v2, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
- const/4 v3, 0x1
- const/4 v4, 0x0
- const/4 v5, 0x1
- const/4 v6, 0x1
- move-object v1, p1
- invoke-static/range {v1 .. v7}, Lokhttp3/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
- move-result-object p1
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- iget-object p1, p0, Lokhttp3/FormBody$Builder;->values:Ljava/util/List;
- iget-object v6, p0, Lokhttp3/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
- const-string v1, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
- const/4 v2, 0x1
- const/4 v3, 0x0
- const/4 v4, 0x1
- move-object v0, p2
- invoke-static/range {v0 .. v6}, Lokhttp3/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
- move-result-object p2
- invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- return-object p0
- .end method
- .method public build()Lokhttp3/FormBody;
- .locals 3
- new-instance v0, Lokhttp3/FormBody;
- iget-object v1, p0, Lokhttp3/FormBody$Builder;->names:Ljava/util/List;
- iget-object v2, p0, Lokhttp3/FormBody$Builder;->values:Ljava/util/List;
- invoke-direct {v0, v1, v2}, Lokhttp3/FormBody;-><init>(Ljava/util/List;Ljava/util/List;)V
- return-object v0
- .end method
|