Object VerificationScriptResourceFactory
-
- All Implemented Interfaces:
public class VerificationScriptResourceFactoryFactory 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static VerificationScriptResourceFactoryINSTANCE
-
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. -
-
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 datamacros- Map of macro keys to replacement values for URL template processing- Returns:
List of valid VerificationScriptResource instances ready for OMID usage
-
-
-
-