
com.squareup.okhttp.OkHttpClient.class Maven / Gradle / Ivy
???? 3?
^
= = = = = = = =
=
= = = = = = =! "# =# =$ =% =& =' =( =) =*+,
"-.
/01 ???234
56 S789
0:
0;
0<
0= S>?@A
9B
=C
DE
=F
GH
IJ
KL
=M NO PQ RS
TU =V =W XY =Z[
\]
\^
\_`a
P
=bc Sd Se
5fg Wh Wi Wjk
[ lmno InnerClasses DEFAULT_PROTOCOLS Ljava/util/List; Signature 0Ljava/util/List; DEFAULT_CONNECTION_SPECS 6Ljava/util/List; defaultSslSocketFactory Ljavax/net/ssl/SSLSocketFactory;
routeDatabase ,Lcom/squareup/okhttp/internal/RouteDatabase;
dispatcher Lcom/squareup/okhttp/Dispatcher; proxy Ljava/net/Proxy; protocols connectionSpecs interceptors 3Ljava/util/List; networkInterceptors
proxySelector Ljava/net/ProxySelector;
cookieHandler Ljava/net/CookieHandler;
internalCache ,Lcom/squareup/okhttp/internal/InternalCache; cache Lcom/squareup/okhttp/Cache;
socketFactory Ljavax/net/SocketFactory; sslSocketFactory hostnameVerifier Ljavax/net/ssl/HostnameVerifier; certificatePinner 'Lcom/squareup/okhttp/CertificatePinner;
authenticator #Lcom/squareup/okhttp/Authenticator; connectionPool $Lcom/squareup/okhttp/ConnectionPool; dns Lcom/squareup/okhttp/Dns; followSslRedirects Z followRedirects retryOnConnectionFailure connectTimeout I readTimeout writeTimeout ()V Code LineNumberTable LocalVariableTable this "Lcom/squareup/okhttp/OkHttpClient; %(Lcom/squareup/okhttp/OkHttpClient;)V okHttpClient
StackMapTableEp setConnectTimeout #(JLjava/util/concurrent/TimeUnit;)V timeout J unit Ljava/util/concurrent/TimeUnit; millis getConnectTimeout ()I setReadTimeout getReadTimeout setWriteTimeout getWriteTimeout setProxy 4(Ljava/net/Proxy;)Lcom/squareup/okhttp/OkHttpClient; getProxy ()Ljava/net/Proxy; setProxySelector <(Ljava/net/ProxySelector;)Lcom/squareup/okhttp/OkHttpClient; getProxySelector ()Ljava/net/ProxySelector; setCookieHandler <(Ljava/net/CookieHandler;)Lcom/squareup/okhttp/OkHttpClient; getCookieHandler ()Ljava/net/CookieHandler; setInternalCache /(Lcom/squareup/okhttp/internal/InternalCache;)V .()Lcom/squareup/okhttp/internal/InternalCache; setCache ?(Lcom/squareup/okhttp/Cache;)Lcom/squareup/okhttp/OkHttpClient; getCache ()Lcom/squareup/okhttp/Cache; setDns =(Lcom/squareup/okhttp/Dns;)Lcom/squareup/okhttp/OkHttpClient; getDns ()Lcom/squareup/okhttp/Dns; setSocketFactory =(Ljavax/net/SocketFactory;)Lcom/squareup/okhttp/OkHttpClient; getSocketFactory ()Ljavax/net/SocketFactory; setSslSocketFactory D(Ljavax/net/ssl/SSLSocketFactory;)Lcom/squareup/okhttp/OkHttpClient; getSslSocketFactory "()Ljavax/net/ssl/SSLSocketFactory; setHostnameVerifier D(Ljavax/net/ssl/HostnameVerifier;)Lcom/squareup/okhttp/OkHttpClient; getHostnameVerifier "()Ljavax/net/ssl/HostnameVerifier; setCertificatePinner K(Lcom/squareup/okhttp/CertificatePinner;)Lcom/squareup/okhttp/OkHttpClient; getCertificatePinner )()Lcom/squareup/okhttp/CertificatePinner; setAuthenticator G(Lcom/squareup/okhttp/Authenticator;)Lcom/squareup/okhttp/OkHttpClient; getAuthenticator %()Lcom/squareup/okhttp/Authenticator; setConnectionPool H(Lcom/squareup/okhttp/ConnectionPool;)Lcom/squareup/okhttp/OkHttpClient; getConnectionPool &()Lcom/squareup/okhttp/ConnectionPool; setFollowSslRedirects %(Z)Lcom/squareup/okhttp/OkHttpClient; followProtocolRedirects getFollowSslRedirects ()Z setFollowRedirects (Z)V getFollowRedirects setRetryOnConnectionFailure getRetryOnConnectionFailure .()Lcom/squareup/okhttp/internal/RouteDatabase;
setDispatcher D(Lcom/squareup/okhttp/Dispatcher;)Lcom/squareup/okhttp/OkHttpClient;
getDispatcher "()Lcom/squareup/okhttp/Dispatcher; setProtocols 4(Ljava/util/List;)Lcom/squareup/okhttp/OkHttpClient; LocalVariableTypeTable T(Ljava/util/List;)Lcom/squareup/okhttp/OkHttpClient; getProtocols ()Ljava/util/List; 2()Ljava/util/List; setConnectionSpecs Z(Ljava/util/List;)Lcom/squareup/okhttp/OkHttpClient; getConnectionSpecs 8()Ljava/util/List; 5()Ljava/util/List; newCall 9(Lcom/squareup/okhttp/Request;)Lcom/squareup/okhttp/Call; request Lcom/squareup/okhttp/Request; cancel 6(Ljava/lang/Object;)Lcom/squareup/okhttp/OkHttpClient; tag Ljava/lang/Object; copyWithDefaults $()Lcom/squareup/okhttp/OkHttpClient; result getDefaultSSLSocketFactory
sslContext Ljavax/net/ssl/SSLContext; e (Ljava/security/GeneralSecurityException;` clone ()Ljava/lang/Object;
Exceptionsq
SourceFile OkHttpClient.java ? ? java/util/ArrayList q b s b ? ? ? ? ? ? ? ? ? ? ? ? *com/squareup/okhttp/internal/RouteDatabase i j com/squareup/okhttp/Dispatcher k l m n o b p brst t u v w z {u x y | } ~ h ? ? ? ? ? ? ? ? ? "java/lang/IllegalArgumentException timeout < 0 ?v unit == nullwxy java/lang/Integer Timeout too large. Timeout too small. dispatcher == nullz{|}~? java/lang/StringBuilder $protocols doesn't contain http/1.1: ???????~ %protocols must not contain http/1.0: protocols must not contain null com/squareup/okhttp/Call ?? ? ? ?? com/squareup/okhttp/OkHttpClient ? ??? ??? ??? ? ? ?????? ??? ??? ? a b e b?? ? g h TLS????? ? ? &java/security/GeneralSecurityException java/lang/AssertionError ? com/squareup/okhttp/Protocol?~?~{? "com/squareup/okhttp/ConnectionSpec?????? "com/squareup/okhttp/OkHttpClient$1??? java/lang/Object java/lang/Cloneable *com/squareup/okhttp/internal/InternalCache $java/lang/CloneNotSupportedException java/util/List addAll (Ljava/util/Collection;)Z com/squareup/okhttp/Cache (Ljava/lang/String;)V java/util/concurrent/TimeUnit toMillis (J)J !com/squareup/okhttp/internal/Util
immutableList "(Ljava/util/List;)Ljava/util/List; HTTP_1_1 Lcom/squareup/okhttp/Protocol; contains (Ljava/lang/Object;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; HTTP_1_0 B(Lcom/squareup/okhttp/OkHttpClient;Lcom/squareup/okhttp/Request;)V (Ljava/lang/Object;)V java/net/ProxySelector
getDefault java/net/CookieHandler javax/net/SocketFactory 3com/squareup/okhttp/internal/tls/OkHostnameVerifier INSTANCE 5Lcom/squareup/okhttp/internal/tls/OkHostnameVerifier; %com/squareup/okhttp/CertificatePinner DEFAULT 6com/squareup/okhttp/internal/http/AuthenticatorAdapter "com/squareup/okhttp/ConnectionPool com/squareup/okhttp/Dns SYSTEM javax/net/ssl/SSLContext getInstance .(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; init W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V HTTP_2 SPDY_3 %([Ljava/lang/Object;)Ljava/util/List;
MODERN_TLS $Lcom/squareup/okhttp/ConnectionSpec; COMPATIBLE_TLS CLEARTEXT %com/squareup/okhttp/internal/Internal instance 'Lcom/squareup/okhttp/internal/Internal; ! = ^ _ a b c d e b c f
g h i j k l m n o b c d p b c f q b c r s b c r t u v w x y z { | } ~ h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 6 ? ? ? ? U*? *? Y? ? *? Y? ? *? *? *? *'? *'?
*'? *? Y?
? *? Y? ? ? ? 2 ? } ~ ? ? $ ? ) ? 0 ? 7 ? > ? I ? T ? ? U ? ? ? ? ? ? *? *? Y? ? *? Y? ? *? *? *? *'? *'?
*'? *+? ? *+? ? *+? ? *+? ? *+? ? *? +? ? W*? +? ? W*+? ? *+? ? *+? ? **? ?
*? ? ? +? ? *+? ? *+? ? *+? ? *+? ? *+? ? *+? ? *+? !? !*+? ? *+? ? *+? ? *+? ? *+?
?
*+? ? ? ? ? " ? } ~ ? ? $ ? ) ? 0 ? 7 ? > ? F ? N ? V ? ^ ? f ? t ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? % ? ? ? ? ?? ? ? ? ? ? ? ? ? W ??
? "Y#? $?-?
? "Y%? $?-? &7 (??
? "Y*? $? ?? ??
? "Y+? $?*?? ? ? ? ? ? % ? 8 ? O ? V ? ? * W ? ? W ? ? W ? ? % 2 ? ? ?
? ? ? ? / *? ? ? ? ? ? ? ? ? ? ? W ??
? "Y#? $?-?
? "Y%? $?-? &7 (??
? "Y*? $? ?? ??
? "Y+? $?*??
? ? ? ? ? % ? 8 ? O ? V ? ? * W ? ? W ? ? W ? ? % 2 ? ? ?
? ? ? ? / *?
? ? ? ? ? ? ? ? ? ? W ??
? "Y#? $?-?
? "Y%? $?-? &7 (??
? "Y*? $? ?? ??
? "Y+? $?*?? ? ? ? ? ? % ? 8 ? O ? V ? ? * W ? ? W ? ? W ? ? % 2 ? ? ?
? ? ? ? / *? ? ? ? ? ? ? ? ? ? ? *+? *? ?
? ? ? ? ? m n ? ? ? / *? ? ? ? ? ? ? ? ? ? ? *+? *? ?
? ? ? t u ? ? ? / *? ? ? ? ? ? ? ? ? ? *+? *? ?
? ? ? v w ? ? ? / *? ? ? ? ? ? ? ? ? G *+? *? ? ? ! "
# ? ? ? x y x ? ? / *? ? ? &