Configurationpublic class ServletFilterConfiguration extends AbstractConfiguration
FilterConfig. This configuration is
read only, adding or removing a property will throw an
UnsupportedOperationException.| Modifier and Type | Field | Description |
|---|---|---|
protected javax.servlet.FilterConfig |
config |
Stores the wrapped filter config.
|
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN| Constructor | Description |
|---|---|
ServletFilterConfiguration(javax.servlet.FilterConfig config) |
Create a ServletFilterConfiguration using the filter initialization parameters.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addPropertyDirect(java.lang.String key,
java.lang.Object obj) |
Adds a property to this configuration.
|
void |
clearProperty(java.lang.String key) |
Removes the property with the given key.
|
boolean |
containsKey(java.lang.String key) |
Checks whether the specified key is stored in this configuration.
|
java.util.Iterator<java.lang.String> |
getKeys() |
Get the list of the keys contained in the configuration.
|
java.lang.Object |
getProperty(java.lang.String key) |
Gets a property from the configuration.
|
protected java.lang.Object |
handleDelimiters(java.lang.Object value) |
Takes care of list delimiters in property values.
|
boolean |
isEmpty() |
Checks if this configuration is empty.
|
addErrorLogListener, addProperty, append, clear, clearPropertyDirect, copy, 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, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subsetaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventsprotected javax.servlet.FilterConfig config
public ServletFilterConfiguration(javax.servlet.FilterConfig config)
config - the filter configurationpublic java.lang.Object getProperty(java.lang.String key)
ConfigurationConfiguration 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).key - property to retrievepublic java.util.Iterator<java.lang.String> getKeys()
Configurationremove() 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.public boolean isEmpty()
getKeys() method (which must be defined by concrete
sub classes) to find out whether properties exist.public boolean containsKey(java.lang.String key)
key - the keypublic void clearProperty(java.lang.String key)
clearProperty in interface ConfigurationclearProperty in class AbstractConfigurationkey - the key of the property to be removedjava.lang.UnsupportedOperationException - because this operation is not
allowedprotected void addPropertyDirect(java.lang.String key, java.lang.Object obj)
addPropertyDirect in class AbstractConfigurationkey - the key of the propertyobj - the value to be addedjava.lang.UnsupportedOperationException - because this operation is not
allowedprotected java.lang.Object handleDelimiters(java.lang.Object value)
value - the property value to be examined