123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- .class public final Lokhttp3/Request;
- .super Ljava/lang/Object;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/MemberClasses;
- value = {
- Lokhttp3/Request$Builder;
- }
- .end annotation
- # instance fields
- .field final body:Lokhttp3/RequestBody;
- .field private volatile cacheControl:Lokhttp3/CacheControl;
- .field final headers:Lokhttp3/Headers;
- .field final method:Ljava/lang/String;
- .field final tag:Ljava/lang/Object;
- .field final url:Lokhttp3/HttpUrl;
- # direct methods
- .method constructor <init>(Lokhttp3/Request$Builder;)V
- .locals 1
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- iget-object v0, p1, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
- iput-object v0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
- iget-object v0, p1, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
- iput-object v0, p0, Lokhttp3/Request;->method:Ljava/lang/String;
- iget-object v0, p1, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
- invoke-virtual {v0}, Lokhttp3/Headers$Builder;->build()Lokhttp3/Headers;
- move-result-object v0
- iput-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
- iget-object v0, p1, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
- iput-object v0, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
- iget-object p1, p1, Lokhttp3/Request$Builder;->tag:Ljava/lang/Object;
- if-eqz p1, :cond_0
- goto :goto_0
- :cond_0
- move-object p1, p0
- :goto_0
- iput-object p1, p0, Lokhttp3/Request;->tag:Ljava/lang/Object;
- return-void
- .end method
- # virtual methods
- .method public body()Lokhttp3/RequestBody;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
- return-object v0
- .end method
- .method public cacheControl()Lokhttp3/CacheControl;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->cacheControl:Lokhttp3/CacheControl;
- if-eqz v0, :cond_0
- goto :goto_0
- :cond_0
- iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
- invoke-static {v0}, Lokhttp3/CacheControl;->parse(Lokhttp3/Headers;)Lokhttp3/CacheControl;
- move-result-object v0
- iput-object v0, p0, Lokhttp3/Request;->cacheControl:Lokhttp3/CacheControl;
- :goto_0
- return-object v0
- .end method
- .method public header(Ljava/lang/String;)Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
- invoke-virtual {v0, p1}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
- move-result-object p1
- return-object p1
- .end method
- .method public headers(Ljava/lang/String;)Ljava/util/List;
- .locals 1
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/lang/String;",
- ")",
- "Ljava/util/List<",
- "Ljava/lang/String;",
- ">;"
- }
- .end annotation
- iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
- invoke-virtual {v0, p1}, Lokhttp3/Headers;->values(Ljava/lang/String;)Ljava/util/List;
- move-result-object p1
- return-object p1
- .end method
- .method public headers()Lokhttp3/Headers;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
- return-object v0
- .end method
- .method public isHttps()Z
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
- invoke-virtual {v0}, Lokhttp3/HttpUrl;->isHttps()Z
- move-result v0
- return v0
- .end method
- .method public method()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->method:Ljava/lang/String;
- return-object v0
- .end method
- .method public newBuilder()Lokhttp3/Request$Builder;
- .locals 1
- new-instance v0, Lokhttp3/Request$Builder;
- invoke-direct {v0, p0}, Lokhttp3/Request$Builder;-><init>(Lokhttp3/Request;)V
- return-object v0
- .end method
- .method public tag()Ljava/lang/Object;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->tag:Ljava/lang/Object;
- return-object v0
- .end method
- .method public toString()Ljava/lang/String;
- .locals 2
- new-instance v0, Ljava/lang/StringBuilder;
- invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
- const-string v1, "Request{method="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Request;->method:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- const-string v1, ", url="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- const-string v1, ", tag="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Request;->tag:Ljava/lang/Object;
- if-eq v1, p0, :cond_0
- goto :goto_0
- :cond_0
- const/4 v1, 0x0
- :goto_0
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- const/16 v1, 0x7d
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
- invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object v0
- return-object v0
- .end method
- .method public url()Lokhttp3/HttpUrl;
- .locals 1
- iget-object v0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
- return-object v0
- .end method
|