com.appnexus.oas.mobilesdk.communicator.XHttpConnectionManager.class Maven / Gradle / Ivy
???? 2? >com/appnexus/oas/mobilesdk/communicator/XHttpConnectionManager java/lang/Object COOKIE_SPECS Ljava/lang/String;
ConstantValue xSpec context Landroid/content/Context; (Landroid/content/Context;)V Code
()V
LineNumberTable LocalVariableTable this @Lcom/appnexus/oas/mobilesdk/communicator/XHttpConnectionManager; sendRequest x(Lcom/appnexus/oas/mobilesdk/communicator/XTransaction;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V @com/appnexus/oas/mobilesdk/communicator/XHttpConnectionManager$1
?(Lcom/appnexus/oas/mobilesdk/communicator/XHttpConnectionManager;Lcom/appnexus/oas/mobilesdk/communicator/XTransaction;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V
! start transaction 6Lcom/appnexus/oas/mobilesdk/communicator/XTransaction; adSlotConfiguration ?Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration; encodeRequestUrl 9(Lcom/appnexus/oas/mobilesdk/communicator/XTransaction;)V ) + * 4com/appnexus/oas/mobilesdk/communicator/XTransaction , url . ?
0 2 1 java/lang/String 3 4 contains (Ljava/lang/CharSequence;)Z 6 \?
0 8 9 : split '(Ljava/lang/String;)[Ljava/lang/String; < &/=
> @ ? android/net/Uri A B encode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; D java/lang/StringBuilder
0 F G H valueOf &(Ljava/lang/Object;)Ljava/lang/String;
C J K (Ljava/lang/String;)V
C M N O append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
C Q R S toString ()Ljava/lang/String; U W
Encoded URL:
Y [ Z -com/appnexus/oas/mobilesdk/utilities/XLogUtil \ ] d '(Ljava/lang/String;Ljava/lang/String;)V _ Encoding exception:
a c b java/lang/Exception d S
getMessage
Y f g ] e parsedUrl [Ljava/lang/String; queryParams Ljava/lang/Exception;
StackMapTable getNewHttpClient 1()Lorg/apache/http/impl/client/DefaultHttpClient;
p r q java/security/KeyStore s S getDefaultType
p u v w getInstance ,(Ljava/lang/String;)Ljava/security/KeyStore;
p y z { load (Ljava/io/InputStream;[C)V } 9com/appnexus/oas/mobilesdk/communicator/XSSLSocketFactory
| ? (Ljava/security/KeyStore;)V ? ? ? )org/apache/http/conn/ssl/SSLSocketFactory ? ? ALLOW_ALL_HOSTNAME_VERIFIER /Lorg/apache/http/conn/ssl/X509HostnameVerifier;
? ? ? ? setHostnameVerifier 2(Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V ? &org/apache/http/params/BasicHttpParams
? ? ? ? org/apache/http/HttpVersion ? ? HTTP_1_1 Lorg/apache/http/HttpVersion;
? ? ? )org/apache/http/params/HttpProtocolParams ? ?
setVersion G(Lorg/apache/http/params/HttpParams;Lorg/apache/http/ProtocolVersion;)V ? UTF-8
? ? ? ? setContentCharset 8(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V ? *org/apache/http/conn/scheme/SchemeRegistry
? ? "org/apache/http/conn/scheme/Scheme ? http
? ? ? .org/apache/http/conn/scheme/PlainSocketFactory ? ? getSocketFactory 2()Lorg/apache/http/conn/scheme/PlainSocketFactory;
? ? ? A(Ljava/lang/String;Lorg/apache/http/conn/scheme/SocketFactory;I)V
? ? ? ? register J(Lorg/apache/http/conn/scheme/Scheme;)Lorg/apache/http/conn/scheme/Scheme; ? https ? ;org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager
? ? ? R(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/scheme/SchemeRegistry;)V ? -org/apache/http/impl/client/DefaultHttpClient
? ? ? T(Lorg/apache/http/conn/ClientConnectionManager;Lorg/apache/http/params/HttpParams;)V
?
trustStore Ljava/security/KeyStore; sf +Lorg/apache/http/conn/ssl/SSLSocketFactory; params #Lorg/apache/http/params/HttpParams; registry ,Lorg/apache/http/conn/scheme/SchemeRegistry; ccm .Lorg/apache/http/conn/ClientConnectionManager; getCookieStore ?(Ljava/lang/String;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)Lorg/apache/http/impl/client/BasicCookieStore; ? ,org/apache/http/impl/client/BasicCookieStore
? ? cookie_shared_pref
? ? ? android/content/Context ? ? getSharedPreferences 8(Ljava/lang/String;I)Landroid/content/SharedPreferences; ? ? ? !android/content/SharedPreferences ? ? getAll ()Ljava/util/Map; ? ? ?
java/util/Map ? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? iterator ()Ljava/util/Iterator; ? ? ? java/util/Iterator ? ? next ()Ljava/lang/Object; ? java/util/Map$Entry ? ? ? ? getValue
Q ? = ? -org/apache/http/impl/cookie/BasicClientCookie
? ? ]
? ? ? K setDomain
? K setPath null
0 equalsIgnoreCase (Ljava/lang/String;)Z java/text/SimpleDateFormat EEE MMM dd HH:mm:ss Z yyyy
java/util/Locale US Ljava/util/Locale;
'(Ljava/lang/String;Ljava/util/Locale;)V
parse $(Ljava/lang/String;)Ljava/util/Date;
?
setExpiryDate (Ljava/util/Date;)V
java/lang/Integer!" parseInt (Ljava/lang/String;)I
?$ ?% (I)V
')( =com/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration*+ getCOPPA ()Z- RMF
?/01 addCookie "(Lorg/apache/http/cookie/Cookie;)V ?34+ hasNext6 BasicCookieStore8 Sending Cookie:
C: N; -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
Y=> ] v@ java/text/ParseExceptionB java/lang/NumberFormatException domain cs .Lorg/apache/http/impl/client/BasicCookieStore; cookie /Lorg/apache/http/impl/cookie/BasicClientCookie; prefs #Landroid/content/SharedPreferences; keys Ljava/util/Map; entry Ljava/util/Map$Entry; formatter Ljava/text/SimpleDateFormat; date Ljava/util/Date; LocalVariableTypeTable $Ljava/util/Map; *Ljava/util/Map$Entry; i getErrorMessage (I)Ljava/lang/String;Y bad request[ Unauthorized] Forbidden_ Not Founda Not Acceptablec ?There seems to be issue with connection. Please try again later code I errorMsg handleResponse ?(Lcom/appnexus/oas/mobilesdk/communicator/XTransaction;Ljava/io/InputStream;ILjava/lang/String;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V
Exceptionsk MIME TYPE:
Ymn ] i )pqe responseCode )ste expectedResponseType
vxw Jcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XJSONResponseParser vy N()Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XJSONResponseParser; ){|e requestType
v~ +(Ljava/io/InputStream;I)Ljava/util/HashMap; )??? response Ljava/util/HashMap;?
??? java/util/HashMap?? get &(Ljava/lang/Object;)Ljava/lang/Object;? java/util/ArrayList
???? size ()I
???? (I)Ljava/lang/Object;? ,com/appnexus/oas/mobilesdk/model/AdJsonModel
??? S getAdType? text/xml? java/io/ByteArrayInputStream
??? S getText
0??? getBytes (Ljava/lang/String;)[B
?? ? ([B)V
??? Icom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser v? M()Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser;
???? readMediationData W(Ljava/io/InputStream;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V? server_error_msg? No Ads Available
???? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?
error_code
C
C? N? (I)Ljava/lang/StringBuilder;
??? java/io/InputStream? close? 6Mediation tag not present. Checking for vast response.
???? readVAST (Ljava/io/InputStream;)V? image
?
?
??? K setAdType
??? K
setFileUrl )??? extraInfo Ljava/lang/Object;
??? S getClkUrl
??? K setClkUrl
??? S getImpUrl
??? K setImpUrl
???? add (Ljava/lang/Object;)Z
?
??? getStringFromInputStream )(Ljava/io/InputStream;)Ljava/lang/String;
0?? S trim
0??? length
?VW? %org/xmlpull/v1/XmlPullParserException ins Ljava/io/InputStream; mimeType adModels Ljava/util/ArrayList; in 'Lorg/xmlpull/v1/XmlPullParserException; adModel .Lcom/appnexus/oas/mobilesdk/model/AdJsonModel; adJsonModel ELjava/util/ArrayList; getBitmapFromURL Q(Ljava/lang/String;Lcom/appnexus/oas/mobilesdk/listeners/IFileDownloadListener;)V
IMAGE URL java/lang/Thread @com/appnexus/oas/mobilesdk/communicator/XHttpConnectionManager$2
?(Lcom/appnexus/oas/mobilesdk/communicator/XHttpConnectionManager;Ljava/lang/String;Lcom/appnexus/oas/mobilesdk/listeners/IFileDownloadListener;)V
(Ljava/lang/Runnable;)V
src fileDownloadListener