Class GetNATs
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.TrackDAO
org.deltava.dao.http.GetNATs
A Data Access Object to get North Atlantic Track data.
- Since:
- 1.0
- Version:
- 10.3
- Author:
- Luke
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the NAT information.Returns the Waypoints for each North Atlantic 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
-
GetNATs
Initializes the Data Access Object.- Parameters:
url
- the URL to fetch from
-
-
Method Details
-
getTrackInfo
Retrieves the NAT information.- Specified by:
getTrackInfo
in classTrackDAO
- Returns:
- a String with the formatted NAT data
- Throws:
DAOException
- if an I/O error occurs
-
getWaypoints
Returns the Waypoints for each North Atlantic Track.- Specified by:
getWaypoints
in classTrackDAO
- Returns:
- a Map of
OceanicTrack
beans, keyed by track code - Throws:
DAOException
- if an I/O error occurs
-