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.
1163 lines
28 KiB
1163 lines
28 KiB
.class public final Lokhttp3/OkHttpClient$Builder; |
|
.super Ljava/lang/Object; |
|
.source "OkHttpClient.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lokhttp3/OkHttpClient; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x19 |
|
name = "Builder" |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field authenticator:Lokhttp3/Authenticator; |
|
|
|
.field cache:Lokhttp3/Cache; |
|
|
|
.field certificatePinner:Lokhttp3/CertificatePinner; |
|
|
|
.field connectTimeout:I |
|
|
|
.field connectionPool:Lokhttp3/ConnectionPool; |
|
|
|
.field connectionSpecs:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/ConnectionSpec;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field cookieJar:Lokhttp3/CookieJar; |
|
|
|
.field dispatcher:Lokhttp3/Dispatcher; |
|
|
|
.field dns:Lokhttp3/Dns; |
|
|
|
.field followRedirects:Z |
|
|
|
.field followSslRedirects:Z |
|
|
|
.field hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; |
|
|
|
.field final interceptors:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/Interceptor;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field internalCache:Lokhttp3/internal/InternalCache; |
|
|
|
.field final networkInterceptors:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/Interceptor;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field protocols:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/Protocol;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field proxy:Ljava/net/Proxy; |
|
|
|
.field proxyAuthenticator:Lokhttp3/Authenticator; |
|
|
|
.field proxySelector:Ljava/net/ProxySelector; |
|
|
|
.field readTimeout:I |
|
|
|
.field retryOnConnectionFailure:Z |
|
|
|
.field socketFactory:Ljavax/net/SocketFactory; |
|
|
|
.field sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; |
|
|
|
.field trustRootIndex:Lokhttp3/internal/tls/TrustRootIndex; |
|
|
|
.field writeTimeout:I |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 3 |
|
|
|
.prologue |
|
const/16 v2, 0x2710 |
|
|
|
const/4 v1, 0x1 |
|
|
|
.line 357 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 335 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->interceptors:Ljava/util/List; |
|
|
|
.line 336 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List; |
|
|
|
.line 358 |
|
new-instance v0, Lokhttp3/Dispatcher; |
|
|
|
invoke-direct {v0}, Lokhttp3/Dispatcher;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dispatcher:Lokhttp3/Dispatcher; |
|
|
|
.line 359 |
|
invoke-static {}, Lokhttp3/OkHttpClient;->access$000()Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->protocols:Ljava/util/List; |
|
|
|
.line 360 |
|
invoke-static {}, Lokhttp3/OkHttpClient;->access$100()Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionSpecs:Ljava/util/List; |
|
|
|
.line 361 |
|
invoke-static {}, Ljava/net/ProxySelector;->getDefault()Ljava/net/ProxySelector; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxySelector:Ljava/net/ProxySelector; |
|
|
|
.line 362 |
|
sget-object v0, Lokhttp3/CookieJar;->NO_COOKIES:Lokhttp3/CookieJar; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cookieJar:Lokhttp3/CookieJar; |
|
|
|
.line 363 |
|
invoke-static {}, Ljavax/net/SocketFactory;->getDefault()Ljavax/net/SocketFactory; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->socketFactory:Ljavax/net/SocketFactory; |
|
|
|
.line 364 |
|
sget-object v0, Lokhttp3/internal/tls/OkHostnameVerifier;->INSTANCE:Lokhttp3/internal/tls/OkHostnameVerifier; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; |
|
|
|
.line 365 |
|
sget-object v0, Lokhttp3/CertificatePinner;->DEFAULT:Lokhttp3/CertificatePinner; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->certificatePinner:Lokhttp3/CertificatePinner; |
|
|
|
.line 366 |
|
sget-object v0, Lokhttp3/Authenticator;->NONE:Lokhttp3/Authenticator; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxyAuthenticator:Lokhttp3/Authenticator; |
|
|
|
.line 367 |
|
sget-object v0, Lokhttp3/Authenticator;->NONE:Lokhttp3/Authenticator; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->authenticator:Lokhttp3/Authenticator; |
|
|
|
.line 368 |
|
new-instance v0, Lokhttp3/ConnectionPool; |
|
|
|
invoke-direct {v0}, Lokhttp3/ConnectionPool;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionPool:Lokhttp3/ConnectionPool; |
|
|
|
.line 369 |
|
sget-object v0, Lokhttp3/Dns;->SYSTEM:Lokhttp3/Dns; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dns:Lokhttp3/Dns; |
|
|
|
.line 370 |
|
iput-boolean v1, p0, Lokhttp3/OkHttpClient$Builder;->followSslRedirects:Z |
|
|
|
.line 371 |
|
iput-boolean v1, p0, Lokhttp3/OkHttpClient$Builder;->followRedirects:Z |
|
|
|
.line 372 |
|
iput-boolean v1, p0, Lokhttp3/OkHttpClient$Builder;->retryOnConnectionFailure:Z |
|
|
|
.line 373 |
|
iput v2, p0, Lokhttp3/OkHttpClient$Builder;->connectTimeout:I |
|
|
|
.line 374 |
|
iput v2, p0, Lokhttp3/OkHttpClient$Builder;->readTimeout:I |
|
|
|
.line 375 |
|
iput v2, p0, Lokhttp3/OkHttpClient$Builder;->writeTimeout:I |
|
|
|
.line 376 |
|
return-void |
|
.end method |
|
|
|
.method constructor <init>(Lokhttp3/OkHttpClient;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 378 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 335 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->interceptors:Ljava/util/List; |
|
|
|
.line 336 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List; |
|
|
|
.line 379 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->dispatcher:Lokhttp3/Dispatcher; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dispatcher:Lokhttp3/Dispatcher; |
|
|
|
.line 380 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->proxy:Ljava/net/Proxy; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxy:Ljava/net/Proxy; |
|
|
|
.line 381 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->protocols:Ljava/util/List; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->protocols:Ljava/util/List; |
|
|
|
.line 382 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->connectionSpecs:Ljava/util/List; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionSpecs:Ljava/util/List; |
|
|
|
.line 383 |
|
iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->interceptors:Ljava/util/List; |
|
|
|
iget-object v1, p1, Lokhttp3/OkHttpClient;->interceptors:Ljava/util/List; |
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z |
|
|
|
.line 384 |
|
iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List; |
|
|
|
iget-object v1, p1, Lokhttp3/OkHttpClient;->networkInterceptors:Ljava/util/List; |
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z |
|
|
|
.line 385 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->proxySelector:Ljava/net/ProxySelector; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxySelector:Ljava/net/ProxySelector; |
|
|
|
.line 386 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->cookieJar:Lokhttp3/CookieJar; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cookieJar:Lokhttp3/CookieJar; |
|
|
|
.line 387 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->internalCache:Lokhttp3/internal/InternalCache; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->internalCache:Lokhttp3/internal/InternalCache; |
|
|
|
.line 388 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->cache:Lokhttp3/Cache; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cache:Lokhttp3/Cache; |
|
|
|
.line 389 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->socketFactory:Ljavax/net/SocketFactory; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->socketFactory:Ljavax/net/SocketFactory; |
|
|
|
.line 390 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; |
|
|
|
.line 391 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->trustRootIndex:Lokhttp3/internal/tls/TrustRootIndex; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->trustRootIndex:Lokhttp3/internal/tls/TrustRootIndex; |
|
|
|
.line 392 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; |
|
|
|
.line 393 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->certificatePinner:Lokhttp3/CertificatePinner; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->certificatePinner:Lokhttp3/CertificatePinner; |
|
|
|
.line 394 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->proxyAuthenticator:Lokhttp3/Authenticator; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxyAuthenticator:Lokhttp3/Authenticator; |
|
|
|
.line 395 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->authenticator:Lokhttp3/Authenticator; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->authenticator:Lokhttp3/Authenticator; |
|
|
|
.line 396 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->connectionPool:Lokhttp3/ConnectionPool; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionPool:Lokhttp3/ConnectionPool; |
|
|
|
.line 397 |
|
iget-object v0, p1, Lokhttp3/OkHttpClient;->dns:Lokhttp3/Dns; |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dns:Lokhttp3/Dns; |
|
|
|
.line 398 |
|
iget-boolean v0, p1, Lokhttp3/OkHttpClient;->followSslRedirects:Z |
|
|
|
iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->followSslRedirects:Z |
|
|
|
.line 399 |
|
iget-boolean v0, p1, Lokhttp3/OkHttpClient;->followRedirects:Z |
|
|
|
iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->followRedirects:Z |
|
|
|
.line 400 |
|
iget-boolean v0, p1, Lokhttp3/OkHttpClient;->retryOnConnectionFailure:Z |
|
|
|
iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->retryOnConnectionFailure:Z |
|
|
|
.line 401 |
|
iget v0, p1, Lokhttp3/OkHttpClient;->connectTimeout:I |
|
|
|
iput v0, p0, Lokhttp3/OkHttpClient$Builder;->connectTimeout:I |
|
|
|
.line 402 |
|
iget v0, p1, Lokhttp3/OkHttpClient;->readTimeout:I |
|
|
|
iput v0, p0, Lokhttp3/OkHttpClient$Builder;->readTimeout:I |
|
|
|
.line 403 |
|
iget v0, p1, Lokhttp3/OkHttpClient;->writeTimeout:I |
|
|
|
iput v0, p0, Lokhttp3/OkHttpClient$Builder;->writeTimeout:I |
|
|
|
.line 404 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public addInterceptor(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 699 |
|
iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->interceptors:Ljava/util/List; |
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
.line 700 |
|
return-object p0 |
|
.end method |
|
|
|
.method public addNetworkInterceptor(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 713 |
|
iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List; |
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
.line 714 |
|
return-object p0 |
|
.end method |
|
|
|
.method public authenticator(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 563 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "authenticator == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 564 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->authenticator:Lokhttp3/Authenticator; |
|
|
|
.line 565 |
|
return-object p0 |
|
.end method |
|
|
|
.method public build()Lokhttp3/OkHttpClient; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 718 |
|
new-instance v0, Lokhttp3/OkHttpClient; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lokhttp3/OkHttpClient;-><init>(Lokhttp3/OkHttpClient$Builder;Lokhttp3/OkHttpClient$1;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public cache(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 491 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->cache:Lokhttp3/Cache; |
|
|
|
.line 492 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->internalCache:Lokhttp3/internal/InternalCache; |
|
|
|
.line 493 |
|
return-object p0 |
|
.end method |
|
|
|
.method public certificatePinner(Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 551 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "certificatePinner == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 552 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->certificatePinner:Lokhttp3/CertificatePinner; |
|
|
|
.line 553 |
|
return-object p0 |
|
.end method |
|
|
|
.method public connectTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 7 |
|
|
|
.prologue |
|
const-wide/16 v4, 0x0 |
|
|
|
.line 412 |
|
cmp-long v0, p1, v4 |
|
|
|
if-gez v0, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "timeout < 0" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 413 |
|
:cond_0 |
|
if-nez p3, :cond_1 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "unit == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 414 |
|
:cond_1 |
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J |
|
|
|
move-result-wide v0 |
|
|
|
.line 415 |
|
const-wide/32 v2, 0x7fffffff |
|
|
|
cmp-long v2, v0, v2 |
|
|
|
if-lez v2, :cond_2 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "Timeout too large." |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 416 |
|
:cond_2 |
|
cmp-long v2, v0, v4 |
|
|
|
if-nez v2, :cond_3 |
|
|
|
cmp-long v2, p1, v4 |
|
|
|
if-lez v2, :cond_3 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "Timeout too small." |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 417 |
|
:cond_3 |
|
long-to-int v0, v0 |
|
|
|
iput v0, p0, Lokhttp3/OkHttpClient$Builder;->connectTimeout:I |
|
|
|
.line 418 |
|
return-object p0 |
|
.end method |
|
|
|
.method public connectionPool(Lokhttp3/ConnectionPool;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 586 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "connectionPool == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 587 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->connectionPool:Lokhttp3/ConnectionPool; |
|
|
|
.line 588 |
|
return-object p0 |
|
.end method |
|
|
|
.method public connectionSpecs(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/ConnectionSpec;", |
|
">;)", |
|
"Lokhttp3/OkHttpClient$Builder;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 685 |
|
invoke-static {p1}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionSpecs:Ljava/util/List; |
|
|
|
.line 686 |
|
return-object p0 |
|
.end method |
|
|
|
.method public cookieJar(Lokhttp3/CookieJar;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 479 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "cookieJar == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 480 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->cookieJar:Lokhttp3/CookieJar; |
|
|
|
.line 481 |
|
return-object p0 |
|
.end method |
|
|
|
.method public dispatcher(Lokhttp3/Dispatcher;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 635 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "dispatcher == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 636 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->dispatcher:Lokhttp3/Dispatcher; |
|
|
|
.line 637 |
|
return-object p0 |
|
.end method |
|
|
|
.method public dns(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 502 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "dns == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 503 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->dns:Lokhttp3/Dns; |
|
|
|
.line 504 |
|
return-object p0 |
|
.end method |
|
|
|
.method public followRedirects(Z)Lokhttp3/OkHttpClient$Builder; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 604 |
|
iput-boolean p1, p0, Lokhttp3/OkHttpClient$Builder;->followRedirects:Z |
|
|
|
.line 605 |
|
return-object p0 |
|
.end method |
|
|
|
.method public followSslRedirects(Z)Lokhttp3/OkHttpClient$Builder; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 598 |
|
iput-boolean p1, p0, Lokhttp3/OkHttpClient$Builder;->followSslRedirects:Z |
|
|
|
.line 599 |
|
return-object p0 |
|
.end method |
|
|
|
.method public hostnameVerifier(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 540 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "hostnameVerifier == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 541 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; |
|
|
|
.line 542 |
|
return-object p0 |
|
.end method |
|
|
|
.method public interceptors()Ljava/util/List; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/Interceptor;", |
|
">;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 695 |
|
iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->interceptors:Ljava/util/List; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public networkInterceptors()Ljava/util/List; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/Interceptor;", |
|
">;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 709 |
|
iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public protocols(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 4 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/List", |
|
"<", |
|
"Lokhttp3/Protocol;", |
|
">;)", |
|
"Lokhttp3/OkHttpClient$Builder;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 670 |
|
invoke-static {p1}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
.line 671 |
|
sget-object v1, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol; |
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
.line 672 |
|
new-instance v1, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "protocols doesn\'t contain http/1.1: " |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v1 |
|
|
|
.line 674 |
|
:cond_0 |
|
sget-object v1, Lokhttp3/Protocol;->HTTP_1_0:Lokhttp3/Protocol; |
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_1 |
|
|
|
.line 675 |
|
new-instance v1, Ljava/lang/IllegalArgumentException; |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "protocols must not contain http/1.0: " |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v1 |
|
|
|
.line 677 |
|
:cond_1 |
|
const/4 v1, 0x0 |
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_2 |
|
|
|
.line 678 |
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "protocols must not contain null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 680 |
|
:cond_2 |
|
invoke-static {v0}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->protocols:Ljava/util/List; |
|
|
|
.line 681 |
|
return-object p0 |
|
.end method |
|
|
|
.method public proxy(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 455 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->proxy:Ljava/net/Proxy; |
|
|
|
.line 456 |
|
return-object p0 |
|
.end method |
|
|
|
.method public proxyAuthenticator(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 575 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "proxyAuthenticator == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 576 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->proxyAuthenticator:Lokhttp3/Authenticator; |
|
|
|
.line 577 |
|
return-object p0 |
|
.end method |
|
|
|
.method public proxySelector(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 468 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->proxySelector:Ljava/net/ProxySelector; |
|
|
|
.line 469 |
|
return-object p0 |
|
.end method |
|
|
|
.method public readTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 7 |
|
|
|
.prologue |
|
const-wide/16 v4, 0x0 |
|
|
|
.line 426 |
|
cmp-long v0, p1, v4 |
|
|
|
if-gez v0, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "timeout < 0" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 427 |
|
:cond_0 |
|
if-nez p3, :cond_1 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "unit == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 428 |
|
:cond_1 |
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J |
|
|
|
move-result-wide v0 |
|
|
|
.line 429 |
|
const-wide/32 v2, 0x7fffffff |
|
|
|
cmp-long v2, v0, v2 |
|
|
|
if-lez v2, :cond_2 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "Timeout too large." |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 430 |
|
:cond_2 |
|
cmp-long v2, v0, v4 |
|
|
|
if-nez v2, :cond_3 |
|
|
|
cmp-long v2, p1, v4 |
|
|
|
if-lez v2, :cond_3 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "Timeout too small." |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 431 |
|
:cond_3 |
|
long-to-int v0, v0 |
|
|
|
iput v0, p0, Lokhttp3/OkHttpClient$Builder;->readTimeout:I |
|
|
|
.line 432 |
|
return-object p0 |
|
.end method |
|
|
|
.method public retryOnConnectionFailure(Z)Lokhttp3/OkHttpClient$Builder; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 627 |
|
iput-boolean p1, p0, Lokhttp3/OkHttpClient$Builder;->retryOnConnectionFailure:Z |
|
|
|
.line 628 |
|
return-object p0 |
|
.end method |
|
|
|
.method setInternalCache(Lokhttp3/internal/InternalCache;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 486 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->internalCache:Lokhttp3/internal/InternalCache; |
|
|
|
.line 487 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cache:Lokhttp3/Cache; |
|
|
|
.line 488 |
|
return-void |
|
.end method |
|
|
|
.method public socketFactory(Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 516 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "socketFactory == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 517 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->socketFactory:Ljavax/net/SocketFactory; |
|
|
|
.line 518 |
|
return-object p0 |
|
.end method |
|
|
|
.method public sslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 527 |
|
if-nez p1, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/NullPointerException; |
|
|
|
const-string v1, "sslSocketFactory == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 528 |
|
:cond_0 |
|
iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; |
|
|
|
.line 529 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->trustRootIndex:Lokhttp3/internal/tls/TrustRootIndex; |
|
|
|
.line 530 |
|
return-object p0 |
|
.end method |
|
|
|
.method public writeTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder; |
|
.locals 7 |
|
|
|
.prologue |
|
const-wide/16 v4, 0x0 |
|
|
|
.line 440 |
|
cmp-long v0, p1, v4 |
|
|
|
if-gez v0, :cond_0 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "timeout < 0" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 441 |
|
:cond_0 |
|
if-nez p3, :cond_1 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "unit == null" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 442 |
|
:cond_1 |
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J |
|
|
|
move-result-wide v0 |
|
|
|
.line 443 |
|
const-wide/32 v2, 0x7fffffff |
|
|
|
cmp-long v2, v0, v2 |
|
|
|
if-lez v2, :cond_2 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "Timeout too large." |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 444 |
|
:cond_2 |
|
cmp-long v2, v0, v4 |
|
|
|
if-nez v2, :cond_3 |
|
|
|
cmp-long v2, p1, v4 |
|
|
|
if-lez v2, :cond_3 |
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException; |
|
|
|
const-string v1, "Timeout too small." |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 445 |
|
:cond_3 |
|
long-to-int v0, v0 |
|
|
|
iput v0, p0, Lokhttp3/OkHttpClient$Builder;->writeTimeout:I |
|
|
|
.line 446 |
|
return-object p0 |
|
.end method
|
|
|