Class DistributionServiceConfigValidator
- java.lang.Object
-
- app.coronawarn.server.services.distribution.config.DistributionServiceConfigValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class DistributionServiceConfigValidator extends Object implements org.springframework.validation.Validator
Validate the values of the DistributionServiceConfig.
-
-
Constructor Summary
Constructors Constructor Description DistributionServiceConfigValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
supports(Class<?> type)
void
validate(Object o, org.springframework.validation.Errors errors)
Validate theDistributionServiceConfig
if the supported country parameter is conform to the ISO 3116.
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> type)
- Specified by:
supports
in interfaceorg.springframework.validation.Validator
-
validate
public void validate(Object o, org.springframework.validation.Errors errors)
Validate theDistributionServiceConfig
if the supported country parameter is conform to the ISO 3116.- Specified by:
validate
in interfaceorg.springframework.validation.Validator
-
-