org.apache.commons.configuration.web

Class ServletConfiguration

public class ServletConfiguration extends BaseWebConfiguration

A configuration wrapper around a ServletConfig. 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

Field Summary
protected ServletConfigconfig
Stores a reference to the wrapped ServletConfig.
Constructor Summary
ServletConfiguration(Servlet servlet)
Create a ServletConfiguration using the initialization parameter of the specified servlet.
ServletConfiguration(ServletConfig config)
Create a ServletConfiguration using the servlet initialization parameters.
Method Summary
IteratorgetKeys()
ObjectgetProperty(String key)

Field Detail

config

protected ServletConfig config
Stores a reference to the wrapped ServletConfig.

Constructor Detail

ServletConfiguration

public ServletConfiguration(Servlet servlet)
Create a ServletConfiguration using the initialization parameter of the specified servlet.

Parameters: servlet the servlet

ServletConfiguration

public ServletConfiguration(ServletConfig config)
Create a ServletConfiguration using the servlet initialization parameters.

Parameters: config the servlet configuration

Method Detail

getKeys

public Iterator getKeys()

getProperty

public Object getProperty(String key)