Class CountryValidation

java.lang.Object
api.mpba.rastvdmy.service.validator.CountryValidation
All Implemented Interfaces:
ValidationStrategy

@Component public class CountryValidation extends Object implements ValidationStrategy
A strategy for validating a country by checking if a country exists by checking against an external REST API.
  • Constructor Details

    • CountryValidation

      public CountryValidation(org.springframework.web.client.RestTemplate restTemplate)
      Constructor for CountryValidation.
      Parameters:
      restTemplate - The RestTemplate to use for making HTTP requests.
  • Method Details