public abstract class GenericCarRentalDataSource extends Object implements CarRentalDataSource, JsonConfigurable
| Modifier and Type | Field and Description |
|---|---|
protected String |
networkName |
| Constructor and Description |
|---|
GenericCarRentalDataSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(com.fasterxml.jackson.databind.JsonNode config) |
List<CarRentalRegion> |
getRegions() |
List<CarRentalStation> |
getStations() |
protected abstract List<CarRentalStation> |
parseVehicles(InputStream json) |
boolean |
updateRegions()
Update the allowable dropoff regions for the car rental datasource.
|
boolean |
updateStations()
Update all car rental stations.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigureprotected String networkName
protected abstract List<CarRentalStation> parseVehicles(InputStream json) throws IOException
IOExceptionpublic List<CarRentalStation> getStations()
getStations in interface CarRentalDataSourcepublic List<CarRentalRegion> getRegions()
getRegions in interface CarRentalDataSourceprotected void configure(com.fasterxml.jackson.databind.JsonNode config)
public boolean updateRegions()
updateRegions in interface CarRentalDataSourcepublic boolean updateStations()
updateStations in interface CarRentalDataSourceCopyright © 2020. All rights reserved.