|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.configuration.AbstractConfiguration
org.apache.commons.configuration.web.ServletContextConfiguration
A configuration wrapper to read the initialization parameters of a servlet context. This configuration is read only, adding or removing a property will throw an UnsupportedOperationException.
| Field Summary | |
protected javax.servlet.ServletContext |
context
|
| Fields inherited from class org.apache.commons.configuration.AbstractConfiguration |
END_TOKEN, START_TOKEN |
| Constructor Summary | |
ServletContextConfiguration(javax.servlet.Servlet servlet)
Create a ServletContextConfiguration using the context of the specified servlet. |
|
ServletContextConfiguration(javax.servlet.ServletContext context)
Create a ServletContextConfiguration using the servlet context initialization parameters. |
|
| Method Summary | |
protected void |
addPropertyDirect(String key,
Object obj)
This operation is not supported and will throw an UnsupportedOperationException. |
void |
clearProperty(String key)
This operation is not supported and will throw an UnsupportedOperationException. |
boolean |
containsKey(String key)
Check if the configuration contains the specified key. |
Iterator |
getKeys()
Get the list of the keys contained in the configuration. |
Object |
getProperty(String key)
Gets a property from the configuration. |
boolean |
isEmpty()
Check if the configuration is empty. |
| Methods inherited from class org.apache.commons.configuration.AbstractConfiguration |
addProperty, clear, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getList, getList, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, interpolate, interpolateHelper, isThrowExceptionOnMissing, resolveContainerStore, setDelimiter, setProperty, setThrowExceptionOnMissing, subset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.servlet.ServletContext context
| Constructor Detail |
public ServletContextConfiguration(javax.servlet.Servlet servlet)
servlet - the servletpublic ServletContextConfiguration(javax.servlet.ServletContext context)
context - the servlet context| Method Detail |
public Object getProperty(String key)
Configuration
key - property to retrieve
protected void addPropertyDirect(String key,
Object obj)
This operation is not supported and will throw an UnsupportedOperationException.
addPropertyDirect in class AbstractConfigurationkey - key to use for mappingobj - object to store
UnsupportedOperationExceptionpublic boolean isEmpty()
AbstractConfiguration
isEmpty in interface ConfigurationisEmpty in class AbstractConfigurationpublic boolean containsKey(String key)
AbstractConfiguration
containsKey in interface ConfigurationcontainsKey in class AbstractConfigurationpublic void clearProperty(String key)
This operation is not supported and will throw an UnsupportedOperationException.
clearProperty in interface ConfigurationclearProperty in class AbstractConfigurationUnsupportedOperationExceptionpublic Iterator getKeys()
AbstractConfiguration
getKeys in interface ConfigurationgetKeys in class AbstractConfiguration
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||