|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
com.oroad.stxx.util.StxxProperties
Extends java.util.Properties to provide easier access methods and public static key constants.
Field Summary | |
static java.lang.String |
ALLOW_URL_DEBUG_KEY
Allows the use of "debug=true" on the querystring to trigger xml debugging |
static java.lang.String |
CACHE_CLASS_KEY
The name of the implementing class for a cache |
static java.lang.String |
CACHE_EXPIRY_TIME_KEY
The expiration time of the cache |
static java.lang.String |
CACHE_NAME_KEY
The name of the cache |
static java.lang.String |
CACHE_SIZE_KEY
The size of the cache |
static java.lang.String |
DEBUG_XML_PATH_KEY
Sets the path for written xml debug information |
static java.lang.String |
DEFAULT_PREFIX
The prefix for default cache values |
protected boolean |
isStrutsPlugin
Holds whether stxx is currently being used with Struts 1.1+ |
static java.lang.String |
TRANSFORM_SELECTOR_PREFIX
The implementation of the class that chooses what transform to use |
static java.lang.String |
TRANSFORMER_CLASS_KEY
The name of the implementing class for a transformer |
static java.lang.String |
TRANSFORMER_PREFIX
The prefix for transformer configurations |
static java.lang.String |
WRITE_XML_DEBUG_KEY
Determines whether xml debugging information will be written to disk as well as screen |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
StxxProperties()
|
Method Summary | |
boolean |
getBoolean(java.lang.String key,
boolean def)
Gets a property as a boolean. |
int |
getInt(java.lang.String key,
int def)
Gets a property as a int. |
long |
getLong(java.lang.String key,
long def)
Gets a property as a long. |
java.lang.String[] |
getStringArray(java.lang.String prop)
Gets a property as a String array. |
boolean |
isStrutsPlugin()
Returns true of stxx is currently being used with Struts 1.1+ |
void |
setStrutsPlugin(boolean val)
Sets whether stxx is currently being used with Struts 1.1+ |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ALLOW_URL_DEBUG_KEY
public static final java.lang.String WRITE_XML_DEBUG_KEY
public static final java.lang.String DEBUG_XML_PATH_KEY
public static final java.lang.String TRANSFORMER_PREFIX
public static final java.lang.String TRANSFORM_SELECTOR_PREFIX
public static final java.lang.String TRANSFORMER_CLASS_KEY
public static final java.lang.String CACHE_CLASS_KEY
public static final java.lang.String CACHE_NAME_KEY
public static final java.lang.String CACHE_SIZE_KEY
public static final java.lang.String CACHE_EXPIRY_TIME_KEY
public static final java.lang.String DEFAULT_PREFIX
protected boolean isStrutsPlugin
Constructor Detail |
public StxxProperties()
Method Detail |
public boolean getBoolean(java.lang.String key, boolean def)
key
- The key to find the propertydef
- The value to return if the key is not found
public int getInt(java.lang.String key, int def)
key
- The key to find the propertydef
- The value to return if the key is not found
public long getLong(java.lang.String key, long def)
key
- The key to find the propertydef
- The value to return if the key is not found
public java.lang.String[] getStringArray(java.lang.String prop)
prop
- The key to find the property
public boolean isStrutsPlugin()
public void setStrutsPlugin(boolean val)
val
- True if used as a Struts plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |