Class ConfigResponseValidator
-
- All Implemented Interfaces:
public final class ConfigResponseValidatorConfigResponseValidator 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.
-
-
Constructor Summary
Constructors Constructor Description ConfigResponseValidator()
-
Method Summary
Modifier and Type Method Description final ValidatedConfigResponseModelvalidateConfigResponse(BaseConfigResponse configResponseObj, ConfigRequestContext configRequestContext)Validates the config response received from the network. -
-
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.
-
-
-
-