public class ServletFilterConfiguration extends AbstractConfiguration
FilterConfig
. This configuration is read only, adding or removing a property
will throw an UnsupportedOperationException.Modifier and Type | Field and Description |
---|---|
protected javax.servlet.FilterConfig |
config
Stores the wrapped filter config.
|
Constructor and Description |
---|
ServletFilterConfiguration(javax.servlet.FilterConfig config)
Create a ServletFilterConfiguration using the filter initialization parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertyDirect(String key,
Object obj)
Adds a property to this configuration.
|
protected void |
clearPropertyDirect(String key)
Removes the property with the given key.
|
protected boolean |
containsKeyInternal(String key)
Checks whether the specified key is stored in this configuration.
|
protected Iterator<String> |
getKeysInternal()
Actually creates an iterator for iterating over the keys in this configuration.
|
protected Object |
getPropertyInternal(String key)
Actually obtains the value of the specified property.
|
protected Object |
handleDelimiters(Object value)
Takes care of list delimiters in property values.
|
protected boolean |
isEmptyInternal()
Checks if this configuration is empty.
|
addErrorLogListener, addProperty, addPropertyInternal, append, beginRead, beginWrite, clear, clearInternal, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getDuration, getDuration, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getKeysInternal, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, interpolatedConfiguration, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setPropertyInternal, setSynchronizer, setThrowExceptionOnMissing, size, sizeInternal, subset, unlock
addEventListener, clearErrorListeners, clearEventListeners, clone, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEvents
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnum, getEnum
protected javax.servlet.FilterConfig config
public ServletFilterConfiguration(javax.servlet.FilterConfig config)
config
- the filter configurationprotected Object getPropertyInternal(String key)
AbstractConfiguration
getProperty()
. Concrete
subclasses must define it to fetch the value of the desired property.getPropertyInternal
in class AbstractConfiguration
key
- the key of the property in questionprotected Iterator<String> getKeysInternal()
AbstractConfiguration
getKeys()
, it has to be defined by concrete subclasses.getKeysInternal
in class AbstractConfiguration
Iterator
with all property keys in this configurationprotected boolean isEmptyInternal()
getKeys()
method (which must be
defined by concrete sub classes) to find out whether properties exist.isEmptyInternal
in class AbstractConfiguration
protected boolean containsKeyInternal(String key)
containsKeyInternal
in class AbstractConfiguration
key
- the keyprotected void clearPropertyDirect(String key)
clearPropertyDirect
in class AbstractConfiguration
key
- the key of the property to be removedUnsupportedOperationException
- because this operation is not allowedprotected void addPropertyDirect(String key, Object obj)
addPropertyDirect
in class AbstractConfiguration
key
- the key of the propertyobj
- the value to be addedUnsupportedOperationException
- because this operation is not allowedprotected Object handleDelimiters(Object value)
value
- the property value to be examinedCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.