Object AdResponseParser

  • All Implemented Interfaces:

    
    public class AdResponseParser
    
                        

    AdResponseParser is responsible for parsing ad response strings into AdResponse objects.

    • 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 AdResponse parseAdResponseString(String responseString) Parses the ad response string into an AdResponse object.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • parseAdResponseString

         final AdResponse parseAdResponseString(String responseString)

        Parses the ad response string into an AdResponse object. It handles JSON parsing exceptions, class cast exceptions, and other general exceptions. If an exception occurs, it throws an AdFetchFailureException with the appropriate error details.

        Parameters:
        responseString - The ad response string to be parsed.
        Returns:

        The parsed AdResponse object.