Package configuration

Class Configuration

java.lang.Object
configuration.Configuration

public class Configuration extends Object
Class containing methods for accessing the server's properties file.
Author:
Afonso Caniço, Afonso Sampaio, Gustavo Ferreira, Samuel Correia
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • load

      public static void load(InputStream stream) throws IOException
      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

      public static String getProperty(String name)
      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

      public static String 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

      public static String 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

      public static String getWebVowlURL()
      Gets the WebVOWL URL for visualising query results.
      Returns:
      The WebVowl website URL, to be used in ResultToVowlServlet.