All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.appnexus.oas.mobilesdk.adcontroller.responseparser.XXMLResponseParser.class Maven / Gradle / Ivy

There is a newer version: 2.2.1r1
Show newest version
????24Icom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParserjava/lang/ObjectTAGLjava/lang/String;wrapperListener_Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser$VASTWrapperListener;readyZ
hasWrapperwrappedVASTXmlKLcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser;clickThroughUrlclickTrackingUrl
skipOffsetIimpressionTrackerUrldurationmediaFileUrl	trackingsLjava/util/List;	SignaturefLjava/util/List;getInstanceM()Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser;Code
-com/appnexus/oas/mobilesdk/admanager/XCaching 1()Lcom/appnexus/oas/mobilesdk/admanager/XCaching;
"#$clear()V	&
()$LineNumberTableLocalVariableTable
StackMapTable
(
/01getClass()Ljava/lang/Class;
354java/lang/Class67
getSimpleName()Ljava/lang/String;	9;java/util/ArrayList
:(	>	@thislistenerreadMediationDataW(Ljava/io/InputStream;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V
ExceptionsG%org/xmlpull/v1/XmlPullParserExceptionIjava/io/IOExceptionKStart reading Mediation xml tag
MON-com/appnexus/oas/mobilesdk/utilities/XLogUtilPQi'(Ljava/lang/String;Ljava/lang/String;)V
SUTandroid/util/XmlVW
newPullParser ()Lorg/xmlpull/v1/XmlPullParser;Y:http://xmlpull.org/v1/doc/features.html#process-namespaces[]\org/xmlpull/v1/XmlPullParser^_
setFeature(Ljava/lang/String;Z)VaUTF-8[cdesetInput*(Ljava/io/InputStream;Ljava/lang/String;)V[ghinextTag()Ik	MobileSDK[mnorequire((ILjava/lang/String;Ljava/lang/String;)V[qrigetEventType[tu7getNamewClientSideMediation
y{zjava/lang/String|}equals(Ljava/lang/Object;)Z
??readMediationTag`(Lorg/xmlpull/v1/XmlPullParser;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V[??inextdataLjava/io/InputStream;adSlotConfiguration?Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;parserLorg/xmlpull/v1/XmlPullParser;?placementId[???getAttributeValue8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?width?height?java/lang/StringBuilder?Parsed placementId: 
??)?(Ljava/lang/String;)V
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
???7toString
M??Qd?Parsed banner width: ?Parsed banner height: 
???java/lang/Integer??parseInt(Ljava/lang/String;)I?IException parsing width and height. Setting default banner size of 320x50
???=com/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration??setMediationPlacementId
????setMediatedBannerSize(II)V
y??7trim
y??ilength
???java/lang/Boolean??valueOf(Z)Ljava/lang/Boolean;
????setMediationEnabled(Ljava/lang/Boolean;)V?java/lang/ExceptionwidthIntheighInteLjava/lang/Exception;readVAST(Ljava/io/InputStream;)V?--- Parsing starts ---?Start reading VAST xml tag?VAST?Ad
???readAd!(Lorg/xmlpull/v1/XmlPullParser;)V?InLine?
VASTXmlParser?)VAST file contains inline ad information.
???
readInLine?Wrapper?*VAST file contains wrapped ad information.	?

???readWrapperpnamereadMediaFiles5(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList;h(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList;?
MediaFiles?	MediaFile?/com/appnexus/oas/mobilesdk/model/MediaFileModel
?(?iddeliverytypebitrate
minBitrate
maxBitrate
scalablemaintainAspectRatiocodecapiFramework
readText2(Lorg/xmlpull/v1/XmlPullParser;)Ljava/lang/String;
??setUrl
??setId
??setDelivery
? ?setType
?"#?
setBitrate
?%&?
setMinBitrate
?()?
setMaxBitrate
?+,?setWidth
?./?	setHeight
?12?setScalable
?45?setMaintainAspectRatio
?78?setCodec
?:;?setApiFramework
:=>}add@Mediafile url: 
?BC7getUrl
EF?skip
mediaFileListLjava/util/ArrayList;mediaFileModel1Lcom/appnexus/oas/mobilesdk/model/MediaFileModel;LocalVariableTypeTableHLjava/util/ArrayList;readTrackingEventsg(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList;PTrackingEventsRTrackingTeventV.com/appnexus/oas/mobilesdk/model/TrackingModel
U(
UYZ?setEvent
U\]?setURL_Added VAST tracking "a"trackingListev
trackingModel0Lcom/appnexus/oas/mobilesdk/model/TrackingModel;GLjava/util/ArrayList;readCompanionClicksu(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList;jVideoClicksl
ClickTrackingnLcom/appnexus/oas/mobilesdk/model/CompanionClickTrackingModel;ULjava/util/ArrayList;readNonLinearClicksu(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList;?Lcom/appnexus/oas/mobilesdk/model/NonLinearClickTrackingModel;ULjava/util/ArrayList;readVideoClicksR(Lorg/xmlpull/v1/XmlPullParser;)Lcom/appnexus/oas/mobilesdk/model/VideoClickModel;?0com/appnexus/oas/mobilesdk/model/VideoClickModel
?(?ClickThrough
????setClickThroughURL?Parsed video clickthrough url: 
???7getClickThroughURL?3com/appnexus/oas/mobilesdk/model/ClickTrackingModel
?(
?
?\? Parsed video clicktracking url: 
?u?  - 
?z
????setClickTrackingArrayList(Ljava/util/ArrayList;)V
????getClickTrackingArrayList()Ljava/util/ArrayList;
????-(Ljava/lang/Object;)Ljava/lang/StringBuilder;videoClickModel2Lcom/appnexus/oas/mobilesdk/model/VideoClickModel;5Lcom/appnexus/oas/mobilesdk/model/ClickTrackingModel;LLjava/util/ArrayList;
readLinearQ(Lorg/xmlpull/v1/XmlPullParser;Lcom/appnexus/oas/mobilesdk/model/CreativeModel;)V?Linear?.com/appnexus/oas/mobilesdk/model/LinearAdModel
?(?:
y???indexOf?JRelative skip offset present. Ad would be skippable after x amount of time
????
setSkipOffset
???-com/appnexus/oas/mobilesdk/utilities/XUtility??convertStringtoSeconds	?
y???(I)Ljava/lang/String;?Absolute skipOffset present.?1No skip offset present. Ad would not be skippable?Duration	??Video duration:- 
????setDuration
?M?
????setTrackingEventArrayList
???
????setMediaFilesArrayList
???
????setVideoClicksArrayList
????getTrackingEventArrayList?getTrackingEventArrayList ?$ tag is not present.
????getMediaFilesArrayList?getMediaFilesArrayList :   tag is not present.
.com/appnexus/oas/mobilesdk/model/CreativeModelsetLinearAdModel3(Lcom/appnexus/oas/mobilesdk/model/LinearAdModel;)V		
HlinearAdModelArrayList
creativeModel0Lcom/appnexus/oas/mobilesdk/model/CreativeModel;
linearAdModel0Lcom/appnexus/oas/mobilesdk/model/LinearAdModel;videoClicks
skipoffsetStrILjava/util/ArrayList;
readCompanionS(Lorg/xmlpull/v1/XmlPullParser;)Lcom/appnexus/oas/mobilesdk/model/CompanionAdModel;	Companion1com/appnexus/oas/mobilesdk/model/CompanionAdModel
(
assetWidthassetHeight
expandedWidth expandedHeight"adSlotID

+
.
'(?
setAssetWidth
*+?setAssetHeight
-.?setExpandedWidth
01?setExpandedHeight
:
45?setAdSlotId7StaticResource
9:;createResourceModel6(Lcom/appnexus/oas/mobilesdk/model/CompanionAdModel;)V=creativeType
?@AgetResource2()Lcom/appnexus/oas/mobilesdk/model/ResourceModel;
CED.com/appnexus/oas/mobilesdk/model/ResourceModelF?setCreativeType
CHI?setStaticResourceKIFrameResource
CMN?setiFrameResourcePHTMLResource
CRS?setHtmlResourceUAdParameters
WX?setAdParametersZAltText
\]?
setAltText_CompanionClickThrough
ab?setCampanionClickThroughURL
de?setTrackingArrayListgCompanionClickTracking
ij?"setCompanionClickTrackingArrayListcompanionAdModel3Lcom/appnexus/oas/mobilesdk/model/CompanionAdModel;companionClickTrackingListcompanionClickTrackingModel
readNonLinearS(Lorg/xmlpull/v1/XmlPullParser;)Lcom/appnexus/oas/mobilesdk/model/NonLinearAdModel;r	NonLineart1com/appnexus/oas/mobilesdk/model/NonLinearAdModel
s(wminSuggestedDuration
s
s+
s.
s1
s4
s-
s0
s:
s???setMinSuggestedDuration
???createNonLinearResourceModel6(Lcom/appnexus/oas/mobilesdk/model/NonLinearAdModel;)V
s?
sW?NonLinearClickThrough
s???setNonLinearClickThroughURL
s??NonLinearClickTracking
s???"setNonLinearClickTrackingArrayListnonLinearAdModel3Lcom/appnexus/oas/mobilesdk/model/NonLinearAdModel;nonLinearClickTrackingListnonLinearClickTrackingModelreadCompanionAds?CompanionAds
??Companion Ad List 
M??QwcompanionAdListJLjava/util/ArrayList;readNonLinearAds?NonLinearAds
?op?companionAdList........ nonLinearAdListJLjava/util/ArrayList;
C(
???setResource3(Lcom/appnexus/oas/mobilesdk/model/ResourceModel;)V
resourceModel0Lcom/appnexus/oas/mobilesdk/model/ResourceModel;
s?nonLinearAdreadCreative6(Lorg/xmlpull/v1/XmlPullParser;Ljava/util/ArrayList;)Vh(Lorg/xmlpull/v1/XmlPullParser;Ljava/util/ArrayList;)V?Creative
(
???
y???	substring(II)Ljava/lang/String;?Linear skipoffset is ? [%]?Skip offset (in seconds) - ?^Absolute time value ignored for skipOffset in VAST xml. Only percentage values will pe parsed.
????(CREATIVE TAG ENDED creative list size - creativesArrayListskipoffset1GLjava/util/ArrayList;
readCreatives?Read Creative tag ?	Creatives
???getWrappedVast?VASTAdTagURI
???loadWrappedVasturl
???getNewHttpClient1()Lorg/apache/http/impl/client/DefaultHttpClient;?&org/apache/http/client/methods/HttpGet
??
???-org/apache/http/impl/client/DefaultHttpClient??executeO(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;??Fetching Wrapped Vast XML...???org/apache/http/HttpResponse??	getEntity()Lorg/apache/http/HttpEntity;???org/apache/http/HttpEntity??
getContent()Ljava/io/InputStream;?&Fetched Wrapped Vast XML successfully!?!Start reading wrapped Vast XML...
??
java/io/InputStream$close.Error fetching wrapped vast tag - Nil response
??Error fetching wrapped vast tag - Client protocol exception :

.org/apache/http/client/ClientProtocolException:Error fetching wrapped vast tag - IllegalStateException :

java/lang/IllegalStateException1Error fetching wrapped vast tag - IO-Exception :

H!.Error fetching wrapped vast tag - Exception :

?$'Error fetching wrapped VAST ad responseisError
httpclient/Lorg/apache/http/impl/client/DefaultHttpClient;httpget(Lorg/apache/http/client/methods/HttpGet;responseLorg/apache/http/HttpResponse;entityLorg/apache/http/HttpEntity;instreammue Ljava/net/MalformedURLException;0Lorg/apache/http/client/ClientProtocolException;!Ljava/lang/IllegalStateException;Ljava/io/IOException;
576java/security/KeyStore87getDefaultType
5:;,(Ljava/lang/String;)Ljava/security/KeyStore;
5=>?load(Ljava/io/InputStream;[C)VA9com/appnexus/oas/mobilesdk/communicator/XSSLSocketFactory
@C)D(Ljava/security/KeyStore;)V	FHG)org/apache/http/conn/ssl/SSLSocketFactoryIJALLOW_ALL_HOSTNAME_VERIFIER/Lorg/apache/http/conn/ssl/X509HostnameVerifier;
FLMNsetHostnameVerifier2(Lorg/apache/http/conn/ssl/X509HostnameVerifier;)VP&org/apache/http/params/BasicHttpParams
O(	SUTorg/apache/http/HttpVersionVWHTTP_1_1Lorg/apache/http/HttpVersion;
Y[Z)org/apache/http/params/HttpProtocolParams\]
setVersionG(Lorg/apache/http/params/HttpParams;Lorg/apache/http/ProtocolVersion;)V
Y_`asetContentCharset8(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)Vc*org/apache/http/conn/scheme/SchemeRegistry
b(f"org/apache/http/conn/scheme/Schemehhttp
jlk.org/apache/http/conn/scheme/PlainSocketFactorymngetSocketFactory2()Lorg/apache/http/conn/scheme/PlainSocketFactory;
ep)qA(Ljava/lang/String;Lorg/apache/http/conn/scheme/SocketFactory;I)V
bsturegisterJ(Lorg/apache/http/conn/scheme/Scheme;)Lorg/apache/http/conn/scheme/Scheme;whttpsy;org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager
x{)|R(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/scheme/SchemeRegistry;)V
?~)T(Lorg/apache/http/conn/ClientConnectionManager;Lorg/apache/http/params/HttpParams;)V
?(
trustStoreLjava/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;?
Impression	?? Wrapper Impression tracker url: 
???
getAdModel,()Lcom/appnexus/oas/mobilesdk/model/AdModel;
???(com/appnexus/oas/mobilesdk/model/AdModel??getImpressionArrayList
???
????Impression tracker url: ?AdSystem
????setAdSystem?AdTitle
????
setAdTitle?Description
????setDescription?
Advertiser
????
setAdvertiser?Pricing
????
setPricing?Survey
????	setSurvey?Error
????setError?"Impression tracker url ArrayList: adModel*Lcom/appnexus/oas/mobilesdk/model/AdModel;
(depth[??7getText?	No text: resultgetImpressionTrackerUrl()Ljava/util/List;&()Ljava/util/List;
??$waitForWrapper?=?java/util/List
???????addAll(Ljava/util/Collection;)Zurls$Ljava/util/List;getDuration
??7getMediaFileUrl	?
??7getTrackingsh()Ljava/util/List;
???tgetTrackingByType(I)Ljava/util/List;'(I)Ljava/util/List;????iterator()Ljava/util/Iterator;???java/util/Iterator??()Ljava/lang/Object;?Rcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser$Tracking
???igetEvent
?B?hasNext()Z
??Ljava/util/Iterator;TLcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser$Tracking;jLjava/util/Iterator;
getSkipOffset

igetClickThroughUrl	

7getClickTrackingUrl	
?isReady		

?
java/lang/Thread !sleep(J)V#Error waiting for wrapper
M%?&<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
()$yield
setWrapperN(Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser;)VvastXmlgetWrappedVASTXml
SourceFileXXMLResponseParser.javaInnerClasses2]com/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser$VASTWrapperListenerVASTWrapperListener!	
B


(	O??!?%?
?Y?'?%?%?*PQRT+,)$j"*?-**?.?2?8*?:Y?+ gA
g??Q??,
?<[??EHF??[+ٹl?F+?p??9+?sM,߶x???L*+??,?x???L*??*+??+??????*JI
J
KLN!O*P,Q.P1R6T?UAVCUFWKXPJZ[+ [A
[??!/?,

?y???EHF?~r+??l?:Y?y?M?EHFN??+O?l?:Y??A
????bH*v?DTcX@deK?bf,?:?wy?g?EHFh??+i?l?:Y??C?L?W?^?h?t???????????????????????????+>?A
?????H*??LV??WK?K???,?:??y???EHF???+i?l?:Y?CLW^ht???????!?"?
?&?'?&?(+>?A
?????H*??LV??WK?K???,?:??y???EHFp*+i?l??Y??M?:Y?+??l,*+?????Y???,????????+??l????k?x?u+k?l??Y??:+???:??*+?????Y??????????????????+k?l-?(?+A3CCDFEIDNGWHcImHpJsKvJ{M?N?P?Q?P?S?T?V?W?X?Y?Z?X?[?\?[?]?_?ab=ghi"h%f(j+H*A
*?????H3???[???P?K??,??:?Ry?????EHF?+??l??Y??N?:Y?<:+ù?:?!ĶƜ*?8ɸ?-?˧?-Ķƛ"*?ε?-*?Ӹն??ظ???*?8ڸ???+?s:+?p????Qܶx?F+ܹl**+???+ܹl??Y??*?޶?????-*?޶?]?O?x?-*+???A???x?-*+???&?i?x?*+???B,?>*+??G???"J?x?*,?8,?>*+??L???"O?x?*,?8,?>*+??Q???T?x?,*+??V???Y?x?,*+??[?{?^?x?,*+??`?_?O?x?,*+??c?C?9f?x?.?mY?o:*+??q+????p-??@?B?I?K?M?T?V?Y?`?b?e?l?n?q?x?z?}???????????????????????????????????????????? ,4?DPXcl	
???
??????????????
 +?A
??kl?mH3??>??I??T??`?l?	x?
? ?s?g"
?=?n?K?m?,W?:??[:yyyyyyyyyy##:?[:opEHFb?+q?l?sY?uM?:Y?9@:B9I;K<M;T=V>Y=`?b@e?lAnBqAxCzD}C?E?F?E?G?H?G?J?K?L?M?N?O?P?Q?R?T?U?V?W?XYZ[ \,^4_?`DaPbXccdletfg?h?i?k?l?m?n?o?p?q?r?q?s?t?u?1?z?{?|+??A
????????H3??>??I??T??`?
l{	xo
?c ?W?Kw
?=???K???,V
?s:??[s:yyyyyyyyyy##:?[s:??EHF;{+??l?:Y???CY??M+,???*????+ A
kl??,??h+????CY??M+,???*????+ A
????,??EHF?t=+??l?Y??N??+?p???+?s:???x?*+-????????x??+ù?:?DĶƜ9*??d????????Y·?*?Ӷ?Ķ??????A?<Ķƛ1??6*?8??YƷ???????*???ȸ?*+?ʧ*+?D+????+?p?:+?s:?-??x?",-??H4?K>??,? :?y???EHF?p"+ٹl*+?M+ٹl*,?۱*789<!>+ "A
"?????E??=*??N??Y+??:-??:?????:?/??:???L????*??:????Y?	?N=*?8??Y
??-????????N=*?8??Y??-???????cN=*?8??Y??-???????BN=*?8??Y??-???????!N=*?8??Y ??-?"????????Y#?	??gg
g?g?g?Hg??*?!BEGIK"L+N0O9PBQKRQSVTYU\VgYhZj[?\?]?^?_?`?a?b?c?d?e?f?g	j
km+?
A
?%
`&'V()N*++<,-9 .?h/0??1??2??3???,??\y?????
y
```H`???4??4?9L+?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy