Class Configuration

java.lang.Object
org.restheart.configuration.Configuration

public class Configuration extends Object
Class that holds the configuration.
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Field Details

    • VERSION

      public static final String VERSION
      the version is read from the JAR's MANIFEST.MF file, which is automatically generated by the Maven build process
    • DEFAULT_ROUTE

      public static final String DEFAULT_ROUTE
      See Also:
    • CONNECTION_OPTIONS_KEY

      public static final String CONNECTION_OPTIONS_KEY
      undertow connetction options See http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#common-listener-optionshttp://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#common-listener-options
      See Also:
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getOrDefault

      public <V> V getOrDefault(String key, V defaultValue)
    • toMap

      public Map<String,Object> toMap()
    • coreModule

      public CoreModule coreModule()
    • getProxies

      public List<ProxiedResource> getProxies()
      Returns:
      the proxies
    • getStaticResources

      public List<StaticResource> getStaticResources()
      Returns:
      the staticResources
    • httpListener

      public Listener httpListener()
      Returns:
      the httpListener
    • httpsListener

      public TLSListener httpsListener()
      Returns:
      the httpsListener
    • ajpListener

      public Listener ajpListener()
      Returns:
      the ajpListener
    • getLogLevel

      public ch.qos.logback.classic.Level getLogLevel()
      Returns:
      the logLevel
    • logging

      public Logging logging()
    • getConnectionOptions

      public Map<String,Object> getConnectionOptions()
      Returns:
      the connectionOptions
    • getPath

      public static Path getPath()
      Returns:
      the path of the configuration file