Class GetVATSIMData
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.GetVATSIMData
A Data Access Object to read VATSIM API data.
- Since:
- 1.0
- Version:
- 11.6
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns information about the selected VATSIM certificate.boolean
Returns whether a VATSIM user is connected to the network.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
-
GetVATSIMData
public GetVATSIMData()
-
-
Method Details
-
getInfo
Returns information about the selected VATSIM certificate.- Parameters:
id
- the VATSIM certificate ID- Returns:
- a Certificate bean
- Throws:
DAOException
- if an error occurs
-
getOnline
Returns whether a VATSIM user is connected to the network.- Parameters:
id
- the VATSIM ID- Returns:
- TRUE if connected, otherwise FALSE
- Throws:
DAOException
- if an error occurs
-