Object VerificationScriptResourceFactory

  • All Implemented Interfaces:

    
    public class VerificationScriptResourceFactory
    
                        

    Factory class for creating OMID VerificationScriptResource instances from verification data.

    This factory handles the conversion of OmidTracker instances (typically from VAST ad verification nodes) into OMID-compliant verification script resources. It supports both parametered and non-parametered verification scripts, and handles macro replacement in verification URLs.

    The factory ensures proper URL validation and filtering of invalid verification resources, returning only successfully created and validated resources for OMID ad session usage.

    • 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 List<VerificationScriptResource> createVerificationScriptResources(List<OmidTracker> adVerifications, Map<String, String> macros) Creates a list of VerificationScriptResource objects from OMID tracker data.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • createVerificationScriptResources

         final List<VerificationScriptResource> createVerificationScriptResources(List<OmidTracker> adVerifications, Map<String, String> macros)

        Creates a list of VerificationScriptResource objects from OMID tracker data.

        This method processes a list of OmidTracker instances and converts them into OMID-compliant verification script resources. It performs macro replacement on verification URLs, validates URL format, and creates appropriate resource types based on whether verification parameters are provided.

        The method filters out any resources that fail creation due to malformed URLs or other validation issues, returning only valid verification resources.

        Parameters:
        adVerifications - List of OmidTracker instances containing verification data
        macros - Map of macro keys to replacement values for URL template processing
        Returns:

        List of valid VerificationScriptResource instances ready for OMID usage