Class ConfigResponseValidator

  • All Implemented Interfaces:

    
    public final class ConfigResponseValidator
    
                        

    ConfigResponseValidator is responsible for validating the responses received from the config network requests. It checks the status code of the response, parses the config content, and validates the config object. If the config is valid, it updates the config model; otherwise, it logs errors and returns appropriate error codes.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • ConfigResponseValidator

        ConfigResponseValidator()
    • Method Detail

      • validateConfigResponse

         final ValidatedConfigResponseModel validateConfigResponse(BaseConfigResponse configResponseObj, ConfigRequestContext configRequestContext)

        Validates the config response received from the network. It checks the status code, parses the config content, and validates the config object.

        Parameters:
        configResponseObj - The ConfigResponseObj containing the status code and config object.
        configRequestContext - The model containing details of the config fetch request.
        Returns:

        The result of the validation, including the status, config object, and any errors.