Class GeoCodeTransportMockRest

    • Constructor Detail

      • GeoCodeTransportMockRest

        public GeoCodeTransportMockRest()
    • Method Detail

      • getCityByCodeAndDate

        public City getCityByCodeAndDate​(String strCityCode,
                                         Date dateRef)
        Get city by code and date.
        Specified by:
        getCityByCodeAndDate in interface IGeoCodeTransportProvider
        Parameters:
        strCityCode - The code INSEE of the city
        dateRef - the date of validity of the city
        Returns:
        String informations of the city
      • getListCitesByNameAndDate

        public List<City> getListCitesByNameAndDate​(String strCityName,
                                                    Date dateRef)
        Get list of cites by exact name and date.
        Specified by:
        getListCitesByNameAndDate in interface IGeoCodeTransportProvider
        Parameters:
        strCityName - The name of the city
        dateRef - the date of validity of the city
        Returns:
        String informations of the city
      • getListCitesByNameAndDateLike

        public List<City> getListCitesByNameAndDateLike​(String strCityName,
                                                        Date dateRef)
        Get list of cites beginning with name and date.
        Specified by:
        getListCitesByNameAndDateLike in interface IGeoCodeTransportProvider
        Parameters:
        strCityName - The name of the city
        dateRef - the date of validity of the city
        Returns:
        String informations of the city
      • getCountryByCodeAndDate

        public Country getCountryByCodeAndDate​(String strCountryCode,
                                               Date dateRef)
        Get country by code and date.
        Specified by:
        getCountryByCodeAndDate in interface IGeoCodeTransportProvider
        Parameters:
        strCountryCode - The code INSEE of the country
        dateRef - the date of validity of the country
        Returns:
        String informations of the country