org.apache.commons.configuration.web
Class ServletFilterConfiguration
java.lang.Object
org.apache.commons.configuration.event.EventSource
org.apache.commons.configuration.AbstractConfiguration
org.apache.commons.configuration.web.BaseWebConfiguration
org.apache.commons.configuration.web.ServletFilterConfiguration
- All Implemented Interfaces:
- Configuration
public class ServletFilterConfiguration
- extends BaseWebConfiguration
A configuration wrapper around a FilterConfig
. This configuration is
read only, adding or removing a property will throw an
UnsupportedOperationException.
- Since:
- 1.1
- Version:
- $Revision: 515306 $, $Date: 2007-03-06 22:15:00 +0100 (Di, 06 Mrz 2007) $
- Author:
- Emmanuel Bourg
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration |
addErrorLogListener, addProperty, clear, clearPropertyDirect, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolateHelper, isDelimiterParsingDisabled, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subset |
Methods inherited from class org.apache.commons.configuration.event.EventSource |
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents |
config
protected FilterConfig config
- Stores the wrapped filter config.
ServletFilterConfiguration
public ServletFilterConfiguration(FilterConfig config)
- Create a ServletFilterConfiguration using the filter initialization parameters.
- Parameters:
config
- the filter configuration
getProperty
public Object getProperty(String key)
- Description copied from interface:
Configuration
- Gets a property from the configuration. This is the most basic get
method for retrieving values of properties. In a typical implementation
of the
Configuration
interface the other get methods (that
return specific data types) will internally make use of this method. On
this level variable substitution is not yet performed. The returned
object is an internal representation of the property value for the passed
in key. It is owned by the Configuration
object. So a caller
should not modify this object. It cannot be guaranteed that this object
will stay constant over time (i.e. further update operations on the
configuration may change its internal state).
- Parameters:
key
- property to retrieve
- Returns:
- the value to which this configuration maps the specified key, or
null if the configuration contains no mapping for this key.
getKeys
public Iterator getKeys()
- Description copied from class:
AbstractConfiguration
- Get the list of the keys contained in the configuration. The returned
iterator can be used to obtain all defined keys. Note that the exact
behavior of the iterator's
remove()
method is specific to
a concrete implementation. It may remove the corresponding
property from the configuration, but this is not guaranteed. In any case
it is no replacement for calling
Configuration.clearProperty(String)
for this property. So it is
highly recommended to avoid using the iterator's remove()
method.
- Specified by:
getKeys
in interface Configuration
- Specified by:
getKeys
in class AbstractConfiguration
- Returns:
- An Iterator.
Copyright © 2001-2007 The Apache Software Foundation. All Rights Reserved.