Object VastProcessor

  • All Implemented Interfaces:

    
    public class VastProcessor
    
                        

    Main 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final VastModel processVast(String vastXml, AdComponent adComponent, List<String> errorTrackers) Processes VAST XML content and returns a structured VAST model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 parsed
        adComponent - The AdComponent providing configuration and context for parsing
        errorTrackers - List of error tracking URLs to fire on parsing failures
        Returns:

        A parsed VastModel containing all structured VAST data