Class GetPACOTs
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.TrackDAO
org.deltava.dao.http.GetPACOTs
A Data Access Object to load Pacific Track data.
- Since:
- 1.0
- Version:
- 10.3
- Author:
- Luke
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the PACOT information.Returns the Waypoints for each Pacific Track.Methods inherited from class org.deltava.dao.http.DAO
getCompression, getHeaderField, getIn, getOut, getResponseCode, init, reset, setAuthentication, setCompression, setConnectTimeout, setMethod, setReadTimeout, setRequestHeader, setReturnErrorStream
-
Constructor Details
-
GetPACOTs
Initializes the Data Access Object.- Parameters:
url
- the URL to fetch from
-
-
Method Details
-
getTrackInfo
Retrieves the PACOT information.- Specified by:
getTrackInfo
in classTrackDAO
- Returns:
- a String with the formatted PACOT data
- Throws:
DAOException
- if an I/O error occurs
-
getWaypoints
Returns the Waypoints for each Pacific Track.- Specified by:
getWaypoints
in classTrackDAO
- Returns:
- a Map of waypoint codes, keyed by track code
- Throws:
DAOException
- if an I/O error occurs
-