Class Configuration

java.lang.Object
com.levelaccess.continuum.Configuration

public final class Configuration extends Object
This class encapsulates all Continuum configuration defined in the user-editable src/main/resources/continuum.json file and related functionality.
  • Method Details

    • isProEdition

      public static boolean isProEdition()
      Gets whether this is the licensed Professional edition of Continuum, as opposed to the free Community edition.
      Returns:
      true if this is the licensed Professional edition of Continuum, otherwise false
    • getAccessEngineType

      public static String getAccessEngineType()
      Gets the value for the 'accessEngineType' attribute defined in continuum.json. Used to determine which version of Access Engine is included with this installation of Continuum and should be used.
      Returns:
      the value for the 'accessEngineType' attribute defined in continuum.json
    • getAmpInstanceUrl

      public static String getAmpInstanceUrl()
      Gets the value for the 'ampInstanceUrl' attribute defined in continuum.json. The URL to the desired AMP instance from which to pull best practice data from.
      Returns:
      the value for the 'ampInstanceUrl' attribute defined in continuum.json
    • getDefaultStandardIds

      public static Set<Integer> getDefaultStandardIds()
      Gets the set of IDs implied from the value of the 'defaultStandardIds' attribute defined in continuum.json as a comma-delimited array of IDs of the accessibility standards to test for by default (invoke Continuum.getSupportedStandards() for a list of these). Set the value of the 'defaultStandardIds' attribute in continuum.json to null to not filter by any accessibility standards by default.
      Returns:
      the set of IDs implied from the value of the 'defaultStandardIds' attribute defined in continuum.json
    • getAmpApiToken

      public static String getAmpApiToken()
      Gets the value for the 'ampApiToken' attribute defined in continuum.json. The AMP API token of the user to use to authenticate any requests to AMP that require authentication, e.g. creating/editing reports in AMP from Continuum as part of submitting test results from Continuum to AMP. Set to null if you don't want to take advantage of this functionality.
      Returns:
      the value for the 'ampApiToken' attribute defined in continuum.json
    • getProxyConfiguration

      public static Configuration.Proxy getProxyConfiguration()
      Gets the proxy-specific configuration in Continuum represented by the 'proxy' object defined in continuum.json.
      Returns:
      the proxy-specific configuration in Continuum represented by the 'proxy' object defined in continuum.json
    • getSauceLabsConfiguration

      public static Configuration.SauceLabs getSauceLabsConfiguration()
      Gets the Sauce Labs-specific configuration in Continuum represented by the 'sauceLabs' object defined in continuum.json.
      Returns:
      the Sauce Labs-specific configuration in Continuum represented by the 'sauceLabs' object defined in continuum.json
    • getMobileConfiguration

      public static Configuration.Mobile getMobileConfiguration()
      Gets the mobile-specific configuration in Continuum represented by the 'mobile' object defined in continuum.json.
      Returns:
      the mobile-specific configuration in Continuum represented by the 'mobile' object defined in continuum.json
    • getAccessibilityConcernsConfiguration

      public static Configuration.AccessibilityConcernsConfiguration getAccessibilityConcernsConfiguration()
    • getLevelAccessPlatformConfiguration

      public static Configuration.LevelAccessPlatformConfiguration getLevelAccessPlatformConfiguration()