You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
742 lines
17 KiB
742 lines
17 KiB
.class public Lokhttp3/Request$Builder; |
|
.super Ljava/lang/Object; |
|
.source "Request.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lokhttp3/Request; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x9 |
|
name = "Builder" |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private body:Lokhttp3/RequestBody; |
|
|
|
.field private headers:Lokhttp3/Headers$Builder; |
|
|
|
.field private method:Ljava/lang/String; |
|
|
|
.field private tag:Ljava/lang/Object; |
|
|
|
.field private url:Lokhttp3/HttpUrl; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 107 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 108 |
|
const-string v0, "GET" |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String; |
|
|
|
.line 109 |
|
new-instance v0, Lokhttp3/Headers$Builder; |
|
|
|
invoke-direct {v0}, Lokhttp3/Headers$Builder;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
.line 110 |
|
return-void |
|
.end method |
|
|
|
.method private constructor <init>(Lokhttp3/Request;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 112 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 113 |
|
invoke-static {p1}, Lokhttp3/Request;->access$600(Lokhttp3/Request;)Lokhttp3/HttpUrl; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl; |
|
|
|
.line 114 |
|
invoke-static {p1}, Lokhttp3/Request;->access$700(Lokhttp3/Request;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String; |
|
|
|
.line 115 |
|
invoke-static {p1}, Lokhttp3/Request;->access$800(Lokhttp3/Request;)Lokhttp3/RequestBody; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody; |
|
|
|
.line 116 |
|
invoke-static {p1}, Lokhttp3/Request;->access$900(Lokhttp3/Request;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->tag:Ljava/lang/Object; |
|
|
|
.line 117 |
|
invoke-static {p1}, Lokhttp3/Request;->access$1000(Lokhttp3/Request;)Lokhttp3/Headers; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lokhttp3/Headers;->newBuilder()Lokhttp3/Headers$Builder; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
.line 118 |
|
return-void |
|
.end method |
|
|
|
.method synthetic constructor <init>(Lokhttp3/Request;Lokhttp3/Request$1;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 100 |
|
invoke-direct {p0, p1}, Lokhttp3/Request$Builder;-><init>(Lokhttp3/Request;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$000(Lokhttp3/Request$Builder;)Lokhttp3/HttpUrl; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 100 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$100(Lokhttp3/Request$Builder;)Ljava/lang/String; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 100 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$200(Lokhttp3/Request$Builder;)Lokhttp3/Headers$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 100 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$300(Lokhttp3/Request$Builder;)Lokhttp3/RequestBody; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 100 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$400(Lokhttp3/Request$Builder;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 100 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->tag:Ljava/lang/Object; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public addHeader(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 177 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder; |
|
|
|
.line 178 |
|
return-object p0 |
|
.end method |
|
|
|
.method public build()Lokhttp3/Request; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 256 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl; |
|
|
|
if-nez v0, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalStateException; |
|
|
|
const-string v1, "url == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 257 |
|
:cond_0 |
|
new-instance v0, Lokhttp3/Request; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lokhttp3/Request;-><init>(Lokhttp3/Request$Builder;Lokhttp3/Request$1;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public cacheControl(Lokhttp3/CacheControl;)Lokhttp3/Request$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 198 |
|
invoke-virtual {p1}, Lokhttp3/CacheControl;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 199 |
|
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
const-string v0, "Cache-Control" |
|
|
|
invoke-virtual {p0, v0}, Lokhttp3/Request$Builder;->removeHeader(Ljava/lang/String;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
.line 200 |
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_0 |
|
const-string v1, "Cache-Control" |
|
|
|
invoke-virtual {p0, v1, v0}, Lokhttp3/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public delete()Lokhttp3/Request$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 220 |
|
const/4 v0, 0x0 |
|
|
|
const/4 v1, 0x0 |
|
|
|
new-array v1, v1, [B |
|
|
|
invoke-static {v0, v1}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p0, v0}, Lokhttp3/Request$Builder;->delete(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public delete(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 216 |
|
const-string v0, "DELETE" |
|
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public get()Lokhttp3/Request$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 204 |
|
const-string v0, "GET" |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {p0, v0, v1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public head()Lokhttp3/Request$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 208 |
|
const-string v0, "HEAD" |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {p0, v0, v1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 165 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$Builder;->set(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder; |
|
|
|
.line 166 |
|
return-object p0 |
|
.end method |
|
|
|
.method public headers(Lokhttp3/Headers;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 188 |
|
invoke-virtual {p1}, Lokhttp3/Headers;->newBuilder()Lokhttp3/Headers$Builder; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
.line 189 |
|
return-object p0 |
|
.end method |
|
|
|
.method public method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 232 |
|
if-eqz p1, :cond_0 |
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 233 |
|
:cond_0 |
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "method == null || method.length() == 0" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 235 |
|
:cond_1 |
|
if-eqz p2, :cond_2 |
|
|
|
invoke-static {p1}, Lokhttp3/internal/http/HttpMethod;->permitsRequestBody(Ljava/lang/String;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_2 |
|
|
|
.line 236 |
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "method " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, " must not have a request body." |
|
|
|
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 |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 238 |
|
:cond_2 |
|
if-nez p2, :cond_3 |
|
|
|
invoke-static {p1}, Lokhttp3/internal/http/HttpMethod;->requiresRequestBody(Ljava/lang/String;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 239 |
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "method " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, " must have a request body." |
|
|
|
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 |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 241 |
|
:cond_3 |
|
iput-object p1, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String; |
|
|
|
.line 242 |
|
iput-object p2, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody; |
|
|
|
.line 243 |
|
return-object p0 |
|
.end method |
|
|
|
.method public patch(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 228 |
|
const-string v0, "PATCH" |
|
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public post(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 212 |
|
const-string v0, "POST" |
|
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public put(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 224 |
|
const-string v0, "PUT" |
|
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public removeHeader(Ljava/lang/String;)Lokhttp3/Request$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 182 |
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder; |
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/Headers$Builder;->removeAll(Ljava/lang/String;)Lokhttp3/Headers$Builder; |
|
|
|
.line 183 |
|
return-object p0 |
|
.end method |
|
|
|
.method public tag(Ljava/lang/Object;)Lokhttp3/Request$Builder; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 251 |
|
iput-object p1, p0, Lokhttp3/Request$Builder;->tag:Ljava/lang/Object; |
|
|
|
.line 252 |
|
return-object p0 |
|
.end method |
|
|
|
.method public url(Ljava/lang/String;)Lokhttp3/Request$Builder; |
|
.locals 7 |
|
|
|
.prologue |
|
const/4 v6, 0x4 |
|
|
|
const/4 v5, 0x3 |
|
|
|
const/4 v1, 0x1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
.line 133 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "url == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 136 |
|
:cond_0 |
|
const-string v3, "ws:" |
|
|
|
move-object v0, p1 |
|
|
|
move v4, v2 |
|
|
|
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_2 |
|
|
|
.line 137 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v1, "http:" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p1, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object p1 |
|
|
|
.line 142 |
|
:cond_1 |
|
:goto_0 |
|
invoke-static {p1}, Lokhttp3/HttpUrl;->parse(Ljava/lang/String;)Lokhttp3/HttpUrl; |
|
|
|
move-result-object v0 |
|
|
|
.line 143 |
|
if-nez v0, :cond_3 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "unexpected url: " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1}, 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 |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 138 |
|
:cond_2 |
|
const-string v3, "wss:" |
|
|
|
move-object v0, p1 |
|
|
|
move v4, v2 |
|
|
|
move v5, v6 |
|
|
|
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 139 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v1, "https:" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object p1 |
|
|
|
goto :goto_0 |
|
|
|
.line 144 |
|
:cond_3 |
|
invoke-virtual {p0, v0}, Lokhttp3/Request$Builder;->url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public url(Ljava/net/URL;)Lokhttp3/Request$Builder; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 154 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "url == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 155 |
|
:cond_0 |
|
invoke-static {p1}, Lokhttp3/HttpUrl;->get(Ljava/net/URL;)Lokhttp3/HttpUrl; |
|
|
|
move-result-object v0 |
|
|
|
.line 156 |
|
if-nez v0, :cond_1 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "unexpected url: " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 157 |
|
:cond_1 |
|
invoke-virtual {p0, v0}, Lokhttp3/Request$Builder;->url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 121 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "url == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 122 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl; |
|
|
|
.line 123 |
|
return-object p0 |
|
.end method
|
|
|