public final class CProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DOC_ROOT_PATH
Root document directory path property name
|
static java.lang.String |
PROPERTY_DISABLE
Disable the feature
|
static java.lang.String |
PROPERTY_ENABLE
enable the feature
|
static java.lang.String |
PROPERTY_PROP_FILE
location of properties file
|
static java.lang.String |
PROPERTY_REQUEST_TIMEOUT
cservlet request timeout
|
static java.lang.String |
ST_HOME
Home directory path property name
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
findProperty(java.lang.String name)
Return specified property value.
|
static java.lang.String |
findProperty(java.lang.String name,
java.lang.String defaultValue)
Return specified property value.
|
static java.lang.String |
getDocRoot()
Get value for DOC_ROOT.
|
static java.lang.String |
getHomeDir()
Get the current home setting
|
static java.lang.String |
getProperty(java.lang.String name)
Return specified property value.
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Return specified property value.
|
static boolean |
hasProperty(java.lang.String name)
Determines if the property list contains a setting for a property
|
static boolean |
isDisabled(java.lang.String module)
Has this module been disabled.
|
static boolean |
isMac()
is Mac?
|
static boolean |
isUnix()
is UNIX ?
|
static void |
reloadProperties()
Forces reload of properties
|
public static final java.lang.String PROPERTY_DISABLE
public static final java.lang.String PROPERTY_ENABLE
public static final java.lang.String PROPERTY_PROP_FILE
public static final java.lang.String PROPERTY_REQUEST_TIMEOUT
public static final java.lang.String ST_HOME
public static final java.lang.String DEFAULT_DOC_ROOT_PATH
@CheckReturnValue public static boolean isDisabled(@Nonnull java.lang.String module)
module
- The module to check@CheckReturnValue public static boolean isUnix()
@CheckReturnValue public static boolean isMac()
@CheckReturnValue @Nullable public static java.lang.String getProperty(@Nonnull java.lang.String name)
name
- name of property@CheckReturnValue @Nonnull public static java.lang.String findProperty(@Nonnull java.lang.String name)
name
- name of property@CheckReturnValue @Nonnull public static java.lang.String findProperty(@Nonnull java.lang.String name, @Nonnull java.lang.String defaultValue)
name
- name of propertydefaultValue
- the default value@CheckReturnValue @Nullable public static java.lang.String getProperty(@Nonnull java.lang.String name, @Nullable java.lang.String defaultValue)
name
- name of propertydefaultValue
- value to be returned if not value associated with supplied property@CheckReturnValue public static boolean hasProperty(@Nonnull java.lang.String name)
name
- name of property to checkpublic static void reloadProperties() throws java.io.IOException
java.io.IOException
@Nonnull @CheckReturnValue public static java.lang.String getHomeDir()
@CheckReturnValue @Nonnull public static java.lang.String getDocRoot()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.