public class Environment extends Object
Constructor and Description |
---|
Environment(File home) |
Environment(File home,
Properties properties) |
public static final String JBOSS_HOST
public static final String NXSERVER_HOST
public static final String TOMCAT_HOST
public static final String NUXEO_HOME_DIR
public static final String NUXEO_HOME
public static final String NUXEO_RUNTIME_HOME
public static final String NUXEO_DATA_DIR
public static final String DEFAULT_DATA_DIR
public static final String NUXEO_LOG_DIR
public static final String DEFAULT_LOG_DIR
public static final String NUXEO_PID_DIR
public static final String NUXEO_TMP_DIR
public static final String DEFAULT_TMP_DIR
public static final String NUXEO_CONFIG_DIR
public static final String DEFAULT_CONFIG_DIR
public static final String NUXEO_WEB_DIR
public static final String DEFAULT_WEB_DIR
public static final String NUXEO_MP_DIR
public static final String DEFAULT_MP_DIR
public static final String NUXEO_CONTEXT_PATH
@Deprecated public static final String HOME_DIR
NUXEO_HOME_DIR
@Deprecated public static final String WEB_DIR
NUXEO_WEB_DIR
@Deprecated public static final String CONFIG_DIR
NUXEO_CONFIG_DIR
@Deprecated public static final String DATA_DIR
NUXEO_DATA_DIR
@Deprecated public static final String LOG_DIR
NUXEO_LOG_DIR
public static final String BUNDLES_DIR
public static final String BUNDLES
protected final Properties properties
protected boolean isAppServer
protected String hostAppName
protected String hostAppVersion
protected Iterable<URL> configProvider
public static final String SERVER_STATUS_KEY
public static final String DISTRIBUTION_NAME
public static final String DISTRIBUTION_VERSION
public static final String DISTRIBUTION_SERVER
public static final String DISTRIBUTION_DATE
public static final String DISTRIBUTION_PACKAGE
public static final String PRODUCT_NAME
public static final String PRODUCT_VERSION
public static final String NUXEO_HTTP_PROXY_HOST
public static final String NUXEO_HTTP_PROXY_PORT
public static final String NUXEO_HTTP_PROXY_LOGIN
public static final String NUXEO_HTTP_PROXY_PASSWORD
public static final String CRYPT_ALGO
public static final String CRYPT_KEY
public static final String CRYPT_KEYALIAS
public static final String CRYPT_KEYSTORE_PATH
public static final String CRYPT_KEYSTORE_PASS
public static final String JAVA_DEFAULT_KEYSTORE
public static final String JAVA_DEFAULT_KEYSTORE_PASS
public Environment(File home)
public Environment(File home, Properties properties)
public static void setDefault(Environment env)
public static Environment getDefault()
public boolean isApplicationServer()
public void setIsApplicationServer(boolean isAppServer)
public String getHostApplicationName()
public String getHostApplicationVersion()
public void setHostApplicationName(String name)
public void setHostApplicationVersion(String version)
public File getRuntimeHome()
public void setRuntimeHome(File runtimeHome)
public String[] getCommandLineArguments()
public void setCommandLineArguments(String[] args)
public String getProperty(String key)
public String getProperty(String key, String defaultValue)
public void setProperty(String key, String value)
public Properties getProperties()
public void loadProperties(Properties props)
public boolean isJBoss()
public boolean isJetty()
public boolean isTomcat()
public void init()
public File getServerHome()
NUXEO_HOME_DIR
is not set), whereas
getHome()
may return runtime home.public void setServerHome(File serverHome)
public void setConfigurationProvider(Iterable<URL> configProvider)
public Iterable<URL> getConfigurationProvider()
Copyright © 2015 Nuxeo SA. All rights reserved.