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, wait
configure
protected String networkName
protected abstract List<CarRentalStation> parseVehicles(InputStream json) throws IOException
IOException
public List<CarRentalStation> getStations()
getStations
in interface CarRentalDataSource
public List<CarRentalRegion> getRegions()
getRegions
in interface CarRentalDataSource
protected void configure(com.fasterxml.jackson.databind.JsonNode config)
public boolean updateRegions()
updateRegions
in interface CarRentalDataSource
public boolean updateStations()
updateStations
in interface CarRentalDataSource
Copyright © 2020. All rights reserved.