Package configuration
Class Configuration
java.lang.Object
configuration.Configuration
Class containing methods for accessing the server's properties file.
- Author:
- Afonso Caniço, Afonso Sampaio, Gustavo Ferreira, Samuel Correia
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the API URL of the GitHub repository used to store query result files.static String
Gets the GitHub authorization token for the repository used to story query result files.static String
getProperty
(String name) Searches for the property with the specified key/name in the property list.static String
Gets the WebVOWL URL for visualising query results.static void
load
(InputStream stream) Loads a property list from the given input stream.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
load
Loads a property list from the given input stream.- Parameters:
stream
- The input stream.- Throws:
IOException
- If an error occurred when reading from the input stream.
-
getProperty
Searches for the property with the specified key/name in the property list.- Parameters:
name
- The key/name of the property.- Returns:
- The property, if found; Null, otherwise.
-
getGitHubAPIURL
Gets the API URL of the GitHub repository used to store query result files.- Returns:
- The base GitHub repository URL, to be used in
SubmitToGitHub
.
-
getGitHubAuthorizationToken
Gets the GitHub authorization token for the repository used to story query result files.- Returns:
- The GitHub authorization token, to be used in
SubmitToGitHub
. - See Also:
-
getWebVowlURL
Gets the WebVOWL URL for visualising query results.- Returns:
- The WebVowl website URL, to be used in
ResultToVowlServlet
.
-