org.axway.grapes.server.config
Class GrapesServerConfig

java.lang.Object
  extended by com.yammer.dropwizard.config.Configuration
      extended by org.axway.grapes.server.config.GrapesServerConfig

public class GrapesServerConfig
extends com.yammer.dropwizard.config.Configuration

Author:
jdcoffre Configuration class of Grapes service class. This configuration is loaded from a yaml file at the service start. The absolute path of the configuration file is one of the mandatory parameter of the command line that start the service.

An example of the expected configuration file in in the project resources.

INFO: You can override configuration settings by passing special Java system properties when starting your service. Overrides must start with prefix dw., followed by the path to the configuration value being overridden. For example, to override the tmpDirectory to use, you could start your service like this: java -Ddw.tmpDirectory=/new/tmp/directory server my-config.json


Constructor Summary
GrapesServerConfig()
           
 
Method Summary
 String getAuthenticationCachePolicy()
           
 CommunityConfig getCommunityConfiguration()
           
 DataBaseConfig getDataBaseConfig()
           
 String getUrl()
          Returns the complete Grapes root URL
 boolean isInMaintenance()
           
 void setMaintenanceMode(boolean maintenanceMode)
           
 
Methods inherited from class com.yammer.dropwizard.config.Configuration
getHttpConfiguration, getLoggingConfiguration, setHttpConfiguration, setLoggingConfiguration, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GrapesServerConfig

public GrapesServerConfig()
Method Detail

getDataBaseConfig

public DataBaseConfig getDataBaseConfig()

getUrl

public String getUrl()
Returns the complete Grapes root URL

Returns:
String

getAuthenticationCachePolicy

public String getAuthenticationCachePolicy()

isInMaintenance

public boolean isInMaintenance()

setMaintenanceMode

public void setMaintenanceMode(boolean maintenanceMode)

getCommunityConfiguration

public CommunityConfig getCommunityConfiguration()


Copyright © 2014. All Rights Reserved.