Object VastProcessor
-
- All Implemented Interfaces:
public class VastProcessorMain processor for handling VAST (Video Ad Serving Template) XML parsing and processing.
This singleton object provides the primary interface for processing VAST XML content and converting it into structured VastModel instances. It orchestrates the parsing process using VastParser and handles event reporting through VastEventProcessor to ensure proper telemetry and error tracking throughout the VAST processing pipeline.
The processor manages the complete VAST parsing lifecycle including initialization, parsing execution, success/failure reporting, and error handling with proper exception propagation for caller handling.
-
-
Field Summary
Fields Modifier and Type Field Description public final static VastProcessorINSTANCE
-
Method Summary
Modifier and Type Method Description final VastModelprocessVast(String vastXml, AdComponent adComponent, List<String> errorTrackers)Processes VAST XML content and returns a structured VAST model. -
-
Method Detail
-
processVast
final VastModel processVast(String vastXml, AdComponent adComponent, List<String> errorTrackers)
Processes VAST XML content and returns a structured VAST model.
This function serves as the main entry point for VAST XML processing. It creates the necessary parser components, handles event reporting for telemetry, and manages the complete parsing lifecycle from initialization to completion or failure.
The function ensures proper error tracking by firing error beacons when parsing fails and maintains comprehensive telemetry throughout the processing pipeline. Error trackers are used to report parsing failures to appropriate monitoring systems.
- Parameters:
vastXml- The VAST XML content to be processed and parsedadComponent- The AdComponent providing configuration and context for parsingerrorTrackers- List of error tracking URLs to fire on parsing failures- Returns:
A parsed VastModel containing all structured VAST data
-
-
-
-