| org.apache.commons.configuration.AbstractConfiguration org.apache.commons.configuration.web.BaseWebConfiguration
All known Subclasses: org.apache.commons.configuration.web.ServletFilterConfiguration, org.apache.commons.configuration.web.ServletRequestConfiguration, org.apache.commons.configuration.web.ServletContextConfiguration, org.apache.commons.configuration.web.AppletConfiguration, org.apache.commons.configuration.web.ServletConfiguration,
BaseWebConfiguration | abstract class BaseWebConfiguration extends AbstractConfiguration (Code) | |
An abstract base class for all web configurations.
This class implements common functionality used by all web based
configurations. E.g. some methods are not supported by configurations of this
type, so they throw a UnsupportedOperationException exception.
author: Oliver Heger version: $Id: BaseWebConfiguration.java 515306 2007-03-06 21:15:00Z oheger $ since: 1.2 |
addPropertyDirect | protected void addPropertyDirect(String key, Object obj)(Code) | | Adds a property to this configuration. This operation is not
supported and will throw an UnsupportedOperationException.
Parameters: key - the key of the property Parameters: obj - the value to be added throws: UnsupportedOperationException - because this operation is notallowed |
clearProperty | public void clearProperty(String key)(Code) | | Removes the property with the given key. This operation is not
supported and will throw an UnsupportedOperationException.
Parameters: key - the key of the property to be removed throws: UnsupportedOperationException - because this operation is notallowed |
containsKey | public boolean containsKey(String key)(Code) | | Checks whether the specified key is stored in this configuration.
Parameters: key - the key a flag whether this key exists in this configuration |
handleDelimiters | protected Object handleDelimiters(Object value)(Code) | | Takes care of list delimiters in property values. This method checks if
delimiter parsing is enabled and the passed in value contains a delimiter
character. If this is the case, a split operation is performed.
Parameters: value - the property value to be examined the processed value |
isEmpty | public boolean isEmpty()(Code) | | Checks if this configuration is empty. This implementation makes use of
the getKeys() method (which must be defined by concrete
sub classes) to find out whether properties exist.
a flag whether this configuration is empty |
Methods inherited from org.apache.commons.configuration.AbstractConfiguration | public void addErrorLogListener()(Code)(Java Doc) public void addProperty(String key, Object value)(Code)(Java Doc) abstract protected void addPropertyDirect(String key, Object value)(Code)(Java Doc) public void clear()(Code)(Java Doc) public void clearProperty(String key)(Code)(Java Doc) protected void clearPropertyDirect(String key)(Code)(Java Doc) abstract public boolean containsKey(String key)(Code)(Java Doc) protected ConfigurationInterpolator createInterpolator()(Code)(Java Doc) public BigDecimal getBigDecimal(String key)(Code)(Java Doc) public BigDecimal getBigDecimal(String key, BigDecimal defaultValue)(Code)(Java Doc) public BigInteger getBigInteger(String key)(Code)(Java Doc) public BigInteger getBigInteger(String key, BigInteger defaultValue)(Code)(Java Doc) public boolean getBoolean(String key)(Code)(Java Doc) public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc) public Boolean getBoolean(String key, Boolean defaultValue)(Code)(Java Doc) public byte getByte(String key)(Code)(Java Doc) public byte getByte(String key, byte defaultValue)(Code)(Java Doc) public Byte getByte(String key, Byte defaultValue)(Code)(Java Doc) public static char getDefaultListDelimiter()(Code)(Java Doc) public static char getDelimiter()(Code)(Java Doc) public double getDouble(String key)(Code)(Java Doc) public double getDouble(String key, double defaultValue)(Code)(Java Doc) public Double getDouble(String key, Double defaultValue)(Code)(Java Doc) public float getFloat(String key)(Code)(Java Doc) public float getFloat(String key, float defaultValue)(Code)(Java Doc) public Float getFloat(String key, Float defaultValue)(Code)(Java Doc) public int getInt(String key)(Code)(Java Doc) public int getInt(String key, int defaultValue)(Code)(Java Doc) public Integer getInteger(String key, Integer defaultValue)(Code)(Java Doc) public ConfigurationInterpolator getInterpolator()(Code)(Java Doc) abstract public Iterator getKeys()(Code)(Java Doc) public Iterator getKeys(String prefix)(Code)(Java Doc) public List getList(String key)(Code)(Java Doc) public List getList(String key, List defaultValue)(Code)(Java Doc) public char getListDelimiter()(Code)(Java Doc) public Log getLogger()(Code)(Java Doc) public long getLong(String key)(Code)(Java Doc) public long getLong(String key, long defaultValue)(Code)(Java Doc) public Long getLong(String key, Long defaultValue)(Code)(Java Doc) public Properties getProperties(String key)(Code)(Java Doc) public Properties getProperties(String key, Properties defaults)(Code)(Java Doc) public short getShort(String key)(Code)(Java Doc) public short getShort(String key, short defaultValue)(Code)(Java Doc) public Short getShort(String key, Short defaultValue)(Code)(Java Doc) public String getString(String key)(Code)(Java Doc) public String getString(String key, String defaultValue)(Code)(Java Doc) public String[] getStringArray(String key)(Code)(Java Doc) public synchronized StrSubstitutor getSubstitutor()(Code)(Java Doc) protected String interpolate(String base)(Code)(Java Doc) protected Object interpolate(Object value)(Code)(Java Doc) protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc) public boolean isDelimiterParsingDisabled()(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) public boolean isThrowExceptionOnMissing()(Code)(Java Doc) protected Object resolveContainerStore(String key)(Code)(Java Doc) public static void setDefaultListDelimiter(char delimiter)(Code)(Java Doc) public static void setDelimiter(char delimiter)(Code)(Java Doc) public void setDelimiterParsingDisabled(boolean delimiterParsingDisabled)(Code)(Java Doc) public void setListDelimiter(char listDelimiter)(Code)(Java Doc) public void setLogger(Log log)(Code)(Java Doc) public void setProperty(String key, Object value)(Code)(Java Doc) public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)(Code)(Java Doc) public Configuration subset(String prefix)(Code)(Java Doc)
|
|
|