com.appnexus.oas.mobilesdk.adcontroller.responseparser.XXMLResponseParser.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appnexusoasmobileadsdk-test Show documentation
Show all versions of appnexusoasmobileadsdk-test Show documentation
AppNexus OpenAdStream Android Advertising Libraries
???? 24 Icom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser java/lang/Object TAG Ljava/lang/String; wrapperListener _Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser$VASTWrapperListener; ready Z
hasWrapper wrappedVASTXml KLcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser; clickThroughUrl clickTrackingUrl
skipOffset I impressionTrackerUrl duration mediaFileUrl trackings Ljava/util/List; Signature fLjava/util/List; getInstance M()Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XXMLResponseParser; Code
-com/appnexus/oas/mobilesdk/admanager/XCaching 1()Lcom/appnexus/oas/mobilesdk/admanager/XCaching;
" # $ clear ()V &
( ) $ LineNumberTable LocalVariableTable
StackMapTable
(
/ 0 1 getClass ()Ljava/lang/Class;
3 5 4 java/lang/Class 6 7
getSimpleName ()Ljava/lang/String; 9 ; java/util/ArrayList
: ( > @ this listener readMediationData W(Ljava/io/InputStream;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V
Exceptions G %org/xmlpull/v1/XmlPullParserException I java/io/IOException K Start reading Mediation xml tag
M O N -com/appnexus/oas/mobilesdk/utilities/XLogUtil P Q i '(Ljava/lang/String;Ljava/lang/String;)V
S U T android/util/Xml V W
newPullParser ()Lorg/xmlpull/v1/XmlPullParser; Y :http://xmlpull.org/v1/doc/features.html#process-namespaces [ ] \ org/xmlpull/v1/XmlPullParser ^ _
setFeature (Ljava/lang/String;Z)V a UTF-8 [ c d e setInput *(Ljava/io/InputStream;Ljava/lang/String;)V [ g h i nextTag ()I k MobileSDK [ m n o require ((ILjava/lang/String;Ljava/lang/String;)V [ q r i getEventType [ t u 7 getName w ClientSideMediation
y { z java/lang/String | } equals (Ljava/lang/Object;)Z
? ? readMediationTag `(Lorg/xmlpull/v1/XmlPullParser;Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration;)V [ ? ? i next data Ljava/io/InputStream; adSlotConfiguration ?Lcom/appnexus/oas/mobilesdk/configuration/XAdSlotConfiguration; parser Lorg/xmlpull/v1/XmlPullParser; ? placementId [ ? ? ? getAttributeValue 8(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;
? ? ? 7 toString
M ? ? Q d ? 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 ? ? 7 trim
y ? ? i length
? ? ? java/lang/Boolean ? ? valueOf (Z)Ljava/lang/Boolean;
? ? ? ? setMediationEnabled (Ljava/lang/Boolean;)V ? java/lang/Exception widthInt heighInt e Ljava/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. ?
? ? ? readWrapper p name readMediaFiles 5(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList; h(Lorg/xmlpull/v1/XmlPullParser;)Ljava/util/ArrayList; ?
MediaFiles ? MediaFile ? /com/appnexus/oas/mobilesdk/model/MediaFileModel
? ( ? id delivery type bitrate
minBitrate
maxBitrate
scalable maintainAspectRatio codec apiFramework
readText 2(Lorg/xmlpull/v1/XmlPullParser;)Ljava/lang/String;
? ? setUrl
? ? setId
? ? setDelivery
? ? setType
?"# ?
setBitrate
?%&