Class GetFASchedule
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.FlightAwareDAO
org.deltava.dao.http.GetFASchedule
Loads airline schedule data from FlightAware.
- Since:
- 8.0
- Version:
- 11.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSchedule
(Airline a, int start, Instant startDate, int days, boolean includeCS) Loads flight schedule entries from FlightAware.Returns any unknown Airline codes from the import.Returns any unknown Airport codes from the import.Methods inherited from class org.deltava.dao.http.FlightAwareDAO
buildURL, init, setKey, setMaxResults
Methods inherited from class org.deltava.dao.http.DAO
getCompression, getHeaderField, getIn, getOut, getResponseCode, reset, setAuthentication, setCompression, setConnectTimeout, setMethod, setReadTimeout, setRequestHeader, setReturnErrorStream
-
Constructor Details
-
GetFASchedule
public GetFASchedule()
-
-
Method Details
-
getUnknownAirports
Returns any unknown Airport codes from the import.- Returns:
- a Collection of Airport codes
-
getUnknownAirlines
Returns any unknown Airline codes from the import.- Returns:
- a Collection of Airline codes
-
getSchedule
public Collection<RawScheduleEntry> getSchedule(Airline a, int start, Instant startDate, int days, boolean includeCS) throws DAOException Loads flight schedule entries from FlightAware.- Parameters:
a
- the Airlinestart
- the result start offsetstartDate
- the start datedays
- the number of days to searchincludeCS
- TRUE to include codeshare flights, otherwise FALSE- Returns:
- a Collection of RawScheduleEntry beans
- Throws:
DAOException
- if an error occurs
-