123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988 |
- .class public final Lokhttp3/OkHttpClient$Builder;
- .super Ljava/lang/Object;
- .source ""
- # 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 certificateChainCleaner:Lokhttp3/internal/tls/CertificateChainCleaner;
- .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 eventListenerFactory:Lokhttp3/EventListener$Factory;
- .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/cache/InternalCache;
- .field final networkInterceptors:Ljava/util/List;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/List<",
- "Lokhttp3/Interceptor;",
- ">;"
- }
- .end annotation
- .end field
- .field pingInterval:I
- .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 writeTimeout:I
- # direct methods
- .method public constructor <init>()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/OkHttpClient$Builder;->interceptors:Ljava/util/List;
- 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;
- new-instance v0, Lokhttp3/Dispatcher;
- invoke-direct {v0}, Lokhttp3/Dispatcher;-><init>()V
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dispatcher:Lokhttp3/Dispatcher;
- sget-object v0, Lokhttp3/OkHttpClient;->DEFAULT_PROTOCOLS:Ljava/util/List;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->protocols:Ljava/util/List;
- sget-object v0, Lokhttp3/OkHttpClient;->DEFAULT_CONNECTION_SPECS:Ljava/util/List;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionSpecs:Ljava/util/List;
- sget-object v0, Lokhttp3/EventListener;->NONE:Lokhttp3/EventListener;
- invoke-static {v0}, Lokhttp3/EventListener;->factory(Lokhttp3/EventListener;)Lokhttp3/EventListener$Factory;
- move-result-object v0
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->eventListenerFactory:Lokhttp3/EventListener$Factory;
- invoke-static {}, Ljava/net/ProxySelector;->getDefault()Ljava/net/ProxySelector;
- move-result-object v0
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxySelector:Ljava/net/ProxySelector;
- sget-object v0, Lokhttp3/CookieJar;->NO_COOKIES:Lokhttp3/CookieJar;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cookieJar:Lokhttp3/CookieJar;
- invoke-static {}, Ljavax/net/SocketFactory;->getDefault()Ljavax/net/SocketFactory;
- move-result-object v0
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->socketFactory:Ljavax/net/SocketFactory;
- sget-object v0, Lokhttp3/internal/tls/OkHostnameVerifier;->INSTANCE:Lokhttp3/internal/tls/OkHostnameVerifier;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- sget-object v0, Lokhttp3/CertificatePinner;->DEFAULT:Lokhttp3/CertificatePinner;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->certificatePinner:Lokhttp3/CertificatePinner;
- sget-object v0, Lokhttp3/Authenticator;->NONE:Lokhttp3/Authenticator;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxyAuthenticator:Lokhttp3/Authenticator;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->authenticator:Lokhttp3/Authenticator;
- new-instance v0, Lokhttp3/ConnectionPool;
- invoke-direct {v0}, Lokhttp3/ConnectionPool;-><init>()V
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionPool:Lokhttp3/ConnectionPool;
- sget-object v0, Lokhttp3/Dns;->SYSTEM:Lokhttp3/Dns;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dns:Lokhttp3/Dns;
- const/4 v0, 0x1
- iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->followSslRedirects:Z
- iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->followRedirects:Z
- iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->retryOnConnectionFailure:Z
- const/16 v0, 0x2710
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->connectTimeout:I
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->readTimeout:I
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->writeTimeout:I
- const/4 v0, 0x0
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->pingInterval:I
- return-void
- .end method
- .method constructor <init>(Lokhttp3/OkHttpClient;)V
- .locals 2
- 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/OkHttpClient$Builder;->interceptors:Ljava/util/List;
- 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;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->dispatcher:Lokhttp3/Dispatcher;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dispatcher:Lokhttp3/Dispatcher;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->proxy:Ljava/net/Proxy;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxy:Ljava/net/Proxy;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->protocols:Ljava/util/List;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->protocols:Ljava/util/List;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->connectionSpecs:Ljava/util/List;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionSpecs:Ljava/util/List;
- 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
- 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
- iget-object v0, p1, Lokhttp3/OkHttpClient;->eventListenerFactory:Lokhttp3/EventListener$Factory;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->eventListenerFactory:Lokhttp3/EventListener$Factory;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->proxySelector:Ljava/net/ProxySelector;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxySelector:Ljava/net/ProxySelector;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->cookieJar:Lokhttp3/CookieJar;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cookieJar:Lokhttp3/CookieJar;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->internalCache:Lokhttp3/internal/cache/InternalCache;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->internalCache:Lokhttp3/internal/cache/InternalCache;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->cache:Lokhttp3/Cache;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->cache:Lokhttp3/Cache;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->socketFactory:Ljavax/net/SocketFactory;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->socketFactory:Ljavax/net/SocketFactory;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->certificateChainCleaner:Lokhttp3/internal/tls/CertificateChainCleaner;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->certificateChainCleaner:Lokhttp3/internal/tls/CertificateChainCleaner;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->certificatePinner:Lokhttp3/CertificatePinner;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->certificatePinner:Lokhttp3/CertificatePinner;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->proxyAuthenticator:Lokhttp3/Authenticator;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->proxyAuthenticator:Lokhttp3/Authenticator;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->authenticator:Lokhttp3/Authenticator;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->authenticator:Lokhttp3/Authenticator;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->connectionPool:Lokhttp3/ConnectionPool;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->connectionPool:Lokhttp3/ConnectionPool;
- iget-object v0, p1, Lokhttp3/OkHttpClient;->dns:Lokhttp3/Dns;
- iput-object v0, p0, Lokhttp3/OkHttpClient$Builder;->dns:Lokhttp3/Dns;
- iget-boolean v0, p1, Lokhttp3/OkHttpClient;->followSslRedirects:Z
- iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->followSslRedirects:Z
- iget-boolean v0, p1, Lokhttp3/OkHttpClient;->followRedirects:Z
- iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->followRedirects:Z
- iget-boolean v0, p1, Lokhttp3/OkHttpClient;->retryOnConnectionFailure:Z
- iput-boolean v0, p0, Lokhttp3/OkHttpClient$Builder;->retryOnConnectionFailure:Z
- iget v0, p1, Lokhttp3/OkHttpClient;->connectTimeout:I
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->connectTimeout:I
- iget v0, p1, Lokhttp3/OkHttpClient;->readTimeout:I
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->readTimeout:I
- iget v0, p1, Lokhttp3/OkHttpClient;->writeTimeout:I
- iput v0, p0, Lokhttp3/OkHttpClient$Builder;->writeTimeout:I
- iget p1, p1, Lokhttp3/OkHttpClient;->pingInterval:I
- iput p1, p0, Lokhttp3/OkHttpClient$Builder;->pingInterval:I
- return-void
- .end method
- # virtual methods
- .method public addInterceptor(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->interceptors:Ljava/util/List;
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/IllegalArgumentException;
- const-string v0, "interceptor == null"
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public addNetworkInterceptor(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List;
- invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/IllegalArgumentException;
- const-string v0, "interceptor == null"
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public authenticator(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->authenticator:Lokhttp3/Authenticator;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "authenticator == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public build()Lokhttp3/OkHttpClient;
- .locals 1
- new-instance v0, Lokhttp3/OkHttpClient;
- invoke-direct {v0, p0}, Lokhttp3/OkHttpClient;-><init>(Lokhttp3/OkHttpClient$Builder;)V
- return-object v0
- .end method
- .method public cache(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->cache:Lokhttp3/Cache;
- const/4 p1, 0x0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->internalCache:Lokhttp3/internal/cache/InternalCache;
- return-object p0
- .end method
- .method public certificatePinner(Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->certificatePinner:Lokhttp3/CertificatePinner;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "certificatePinner == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public connectTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- const-string v0, "timeout"
- invoke-static {v0, p1, p2, p3}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
- move-result p1
- iput p1, p0, Lokhttp3/OkHttpClient$Builder;->connectTimeout:I
- return-object p0
- .end method
- .method public connectionPool(Lokhttp3/ConnectionPool;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->connectionPool:Lokhttp3/ConnectionPool;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "connectionPool == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public connectionSpecs(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/util/List<",
- "Lokhttp3/ConnectionSpec;",
- ">;)",
- "Lokhttp3/OkHttpClient$Builder;"
- }
- .end annotation
- invoke-static {p1}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->connectionSpecs:Ljava/util/List;
- return-object p0
- .end method
- .method public cookieJar(Lokhttp3/CookieJar;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->cookieJar:Lokhttp3/CookieJar;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "cookieJar == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public dispatcher(Lokhttp3/Dispatcher;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->dispatcher:Lokhttp3/Dispatcher;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/IllegalArgumentException;
- const-string v0, "dispatcher == null"
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public dns(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->dns:Lokhttp3/Dns;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "dns == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public eventListener(Lokhttp3/EventListener;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- invoke-static {p1}, Lokhttp3/EventListener;->factory(Lokhttp3/EventListener;)Lokhttp3/EventListener$Factory;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->eventListenerFactory:Lokhttp3/EventListener$Factory;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "eventListener == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public eventListenerFactory(Lokhttp3/EventListener$Factory;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->eventListenerFactory:Lokhttp3/EventListener$Factory;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "eventListenerFactory == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public followRedirects(Z)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- iput-boolean p1, p0, Lokhttp3/OkHttpClient$Builder;->followRedirects:Z
- return-object p0
- .end method
- .method public followSslRedirects(Z)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- iput-boolean p1, p0, Lokhttp3/OkHttpClient$Builder;->followSslRedirects:Z
- return-object p0
- .end method
- .method public hostnameVerifier(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "hostnameVerifier == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public interceptors()Ljava/util/List;
- .locals 1
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "()",
- "Ljava/util/List<",
- "Lokhttp3/Interceptor;",
- ">;"
- }
- .end annotation
- 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
- iget-object v0, p0, Lokhttp3/OkHttpClient$Builder;->networkInterceptors:Ljava/util/List;
- return-object v0
- .end method
- .method public pingInterval(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- const-string v0, "interval"
- invoke-static {v0, p1, p2, p3}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
- move-result p1
- iput p1, p0, Lokhttp3/OkHttpClient$Builder;->pingInterval:I
- return-object p0
- .end method
- .method public protocols(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;
- .locals 3
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/util/List<",
- "Lokhttp3/Protocol;",
- ">;)",
- "Lokhttp3/OkHttpClient$Builder;"
- }
- .end annotation
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
- sget-object p1, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
- invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
- move-result p1
- if-eqz p1, :cond_2
- sget-object p1, Lokhttp3/Protocol;->HTTP_1_0:Lokhttp3/Protocol;
- invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
- move-result p1
- if-nez p1, :cond_1
- const/4 p1, 0x0
- invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
- move-result p1
- if-nez p1, :cond_0
- sget-object p1, Lokhttp3/Protocol;->SPDY_3:Lokhttp3/Protocol;
- invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
- invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->protocols:Ljava/util/List;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/IllegalArgumentException;
- const-string v0, "protocols must not contain null"
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_1
- new-instance p1, Ljava/lang/IllegalArgumentException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "protocols must not contain http/1.0: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object v0
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_2
- new-instance p1, Ljava/lang/IllegalArgumentException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "protocols doesn\'t contain http/1.1: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object v0
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public proxy(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->proxy:Ljava/net/Proxy;
- return-object p0
- .end method
- .method public proxyAuthenticator(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->proxyAuthenticator:Lokhttp3/Authenticator;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "proxyAuthenticator == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public proxySelector(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->proxySelector:Ljava/net/ProxySelector;
- return-object p0
- .end method
- .method public readTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- const-string v0, "timeout"
- invoke-static {v0, p1, p2, p3}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
- move-result p1
- iput p1, p0, Lokhttp3/OkHttpClient$Builder;->readTimeout:I
- return-object p0
- .end method
- .method public retryOnConnectionFailure(Z)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- iput-boolean p1, p0, Lokhttp3/OkHttpClient$Builder;->retryOnConnectionFailure:Z
- return-object p0
- .end method
- .method setInternalCache(Lokhttp3/internal/cache/InternalCache;)V
- .locals 0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->internalCache:Lokhttp3/internal/cache/InternalCache;
- const/4 p1, 0x0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->cache:Lokhttp3/Cache;
- return-void
- .end method
- .method public socketFactory(Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->socketFactory:Ljavax/net/SocketFactory;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "socketFactory == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public sslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder;
- .locals 3
- if-eqz p1, :cond_1
- invoke-static {}, Lokhttp3/internal/platform/Platform;->get()Lokhttp3/internal/platform/Platform;
- move-result-object v0
- invoke-virtual {v0, p1}, Lokhttp3/internal/platform/Platform;->trustManager(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager;
- move-result-object v0
- if-eqz v0, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- invoke-static {v0}, Lokhttp3/internal/tls/CertificateChainCleaner;->get(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->certificateChainCleaner:Lokhttp3/internal/tls/CertificateChainCleaner;
- return-object p0
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "Unable to extract the trust manager on "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-static {}, Lokhttp3/internal/platform/Platform;->get()Lokhttp3/internal/platform/Platform;
- move-result-object v2
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- const-string v2, ", sslSocketFactory is "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
- move-result-object p1
- invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object p1
- invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
- throw v0
- :cond_1
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "sslSocketFactory == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public sslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;
- .locals 0
- if-eqz p1, :cond_1
- if-eqz p2, :cond_0
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- invoke-static {p2}, Lokhttp3/internal/tls/CertificateChainCleaner;->get(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/OkHttpClient$Builder;->certificateChainCleaner:Lokhttp3/internal/tls/CertificateChainCleaner;
- return-object p0
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "trustManager == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_1
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "sslSocketFactory == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public writeTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
- .locals 1
- const-string v0, "timeout"
- invoke-static {v0, p1, p2, p3}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
- move-result p1
- iput p1, p0, Lokhttp3/OkHttpClient$Builder;->writeTimeout:I
- return-object p0
- .end method
|