Class GeoCodeTransportRest
- java.lang.Object
-
- fr.paris.lutece.plugins.geocode.v1.web.rs.service.AbstractTransportRest
-
- fr.paris.lutece.plugins.geocode.v1.web.rs.service.GeoCodeTransportRest
-
- All Implemented Interfaces:
IGeoCodeTransportProvider
public class GeoCodeTransportRest extends AbstractTransportRest implements IGeoCodeTransportProvider
IdentityQualityRestClientService
-
-
Constructor Summary
Constructors Constructor Description GeoCodeTransportRest()Simple ConstructorGeoCodeTransportRest(IHttpTransportProvider httpTransport)Constructor with IHttpTransportProvider parameter
-
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.-
Methods inherited from class fr.paris.lutece.plugins.geocode.v1.web.rs.service.AbstractTransportRest
setHttpTransport
-
-
-
-
Constructor Detail
-
GeoCodeTransportRest
public GeoCodeTransportRest()
Simple Constructor
-
GeoCodeTransportRest
public GeoCodeTransportRest(IHttpTransportProvider httpTransport)
Constructor with IHttpTransportProvider parameter- Parameters:
httpTransport- the provider to use
-
-
Method Detail
-
getCityByCodeAndDate
public City getCityByCodeAndDate(String strCityCode, Date dateRef) throws Exception
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
- Throws:
Exception
-
getListCitesByNameAndDate
public List<City> getListCitesByNameAndDate(String strCityName, Date dateRef) throws Exception
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
- Throws:
Exception
-
getListCitesByNameAndDateLike
public List<City> getListCitesByNameAndDateLike(String strCityName, Date dateRef) throws Exception
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
- Throws:
Exception
-
getCountryByCodeAndDate
public Country getCountryByCodeAndDate(String strCountryCode, Date dateRef) throws Exception
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
- Throws:
Exception
-
getListCountriesByNameAndDate
public List<Country> getListCountriesByNameAndDate(String strCountryName, Date dateRef) throws Exception
Get 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
-
-