Class GeoCodeTransportMockRest
- java.lang.Object
-
- fr.paris.lutece.plugins.geocode.v1.web.rs.service.GeoCodeTransportMockRest
-
- All Implemented Interfaces:
IGeoCodeTransportProvider
public class GeoCodeTransportMockRest extends Object implements IGeoCodeTransportProvider
IdentityQualityRestClientService
-
-
Constructor Summary
Constructors Constructor Description GeoCodeTransportMockRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CitygetCityByCodeAndDate(String strCityCode, Date dateRef)Get city by code and date.CountrygetCountryByCodeAndDate(String strCountryCode, Date dateRef)Get country by code and date.List<City>getListCitesByNameAndDate(String strCityName, Date dateRef)Get list of cites by exact name and date.List<City>getListCitesByNameAndDateLike(String strCityName, Date dateRef)Get list of cites beginning with name and date.List<Country>getListCountriesByNameAndDate(String strCountryName, Date dateRef)Get country by code and date.
-
-
-
Method Detail
-
getCityByCodeAndDate
public City getCityByCodeAndDate(String strCityCode, Date dateRef)
Get city by code and date.- Specified by:
getCityByCodeAndDatein interfaceIGeoCodeTransportProvider- Parameters:
strCityCode- The code INSEE of the citydateRef- 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:
getListCitesByNameAndDatein interfaceIGeoCodeTransportProvider- Parameters:
strCityName- The name of the citydateRef- 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:
getListCitesByNameAndDateLikein interfaceIGeoCodeTransportProvider- Parameters:
strCityName- The name of the citydateRef- 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:
getCountryByCodeAndDatein interfaceIGeoCodeTransportProvider- Parameters:
strCountryCode- The code INSEE of the countrydateRef- the date of validity of the country- Returns:
- String informations of the country
-
getListCountriesByNameAndDate
public List<Country> getListCountriesByNameAndDate(String strCountryName, Date dateRef) throws Exception
Description copied from interface:IGeoCodeTransportProviderGet country by code and date.- Specified by:
getListCountriesByNameAndDatein interfaceIGeoCodeTransportProvider- Parameters:
strCountryName- The name of the countrydateRef- the date of validity of the country- Returns:
- String informations of the country
- Throws:
Exception
-
-