Class GetAUSOTs
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.TrackDAO
org.deltava.dao.http.GetAUSOTs
A Data Access Object to get Australian Track data.
- Since:
- 2.7
- Version:
- 12.3
- Author:
- Luke
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the AUSOT information.Returns the Waypoints for each Australian Track.Methods inherited from class DAO
getCompression, getHeaderField, getIn, getOut, getResponseCode, init, reset, setAuthentication, setCompression, setConnectTimeout, setMethod, setReadTimeout, setRequestHeader, setReturnErrorStreamModifier and TypeMethodDescriptionReturns the response compression type.protected StringgetHeaderField(String name) Returns an HTTP response header.protected InputStreamgetIn()Retrieves an input stream to the URL.protected OutputStreamgetOut()Retrieves an output stream to the URL.protected intReturns the HTTP response code for this request.protected voidHelper method to open the connection.voidreset()Resets the connection for subsequent reuse.protected voidsetAuthentication(String userID, String pwd) Sets an authentication request header.voidsetCompression(Compression... cmps) Updates the allowed compression for this request.voidsetConnectTimeout(int timeout) Sets the HTTP connect timeout.voidSets the HTTP method to use if not GET.voidsetReadTimeout(int timeout) Sets the HTTP connect timeout.protected voidsetRequestHeader(String name, String value) Sets a request header.voidsetReturnErrorStream(boolean returnErrStream) Sets whether the error stream should be returned when connecting and an error occurs.
-
Constructor Details
-
GetAUSOTs
Initializes the Data Access Object.- Parameters:
url- the URL to fetch from
-
-
Method Details
-
getTrackInfo
Retrieves the AUSOT information.- Specified by:
getTrackInfoin classTrackDAO- Returns:
- a String with the formatted AUSOT data
- Throws:
DAOException- if an I/O error occurs
-
getWaypoints
Returns the Waypoints for each Australian Track.- Specified by:
getWaypointsin classTrackDAO- Returns:
- a Map of
OceanicTrackbeans, keyed by track code - Throws:
DAOException- if an I/O error occurs
-