org.apache.commons.configuration.web

Class ServletContextConfiguration

public class ServletContextConfiguration extends BaseWebConfiguration

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.

Since: 1.1

Version: $Revision: 515306 $, $Date: 2007-03-06 22:15:00 +0100 (Di, 06 Mrz 2007) $

Author: Emmanuel Bourg

Field Summary
protected ServletContextcontext
Stores the wrapped servlet context.
Constructor Summary
ServletContextConfiguration(Servlet servlet)
Create a ServletContextConfiguration using the context of the specified servlet.
ServletContextConfiguration(ServletContext context)
Create a ServletContextConfiguration using the servlet context initialization parameters.
Method Summary
IteratorgetKeys()
ObjectgetProperty(String key)

Field Detail

context

protected ServletContext context
Stores the wrapped servlet context.

Constructor Detail

ServletContextConfiguration

public ServletContextConfiguration(Servlet servlet)
Create a ServletContextConfiguration using the context of the specified servlet.

Parameters: servlet the servlet

ServletContextConfiguration

public ServletContextConfiguration(ServletContext context)
Create a ServletContextConfiguration using the servlet context initialization parameters.

Parameters: context the servlet context

Method Detail

getKeys

public Iterator getKeys()

getProperty

public Object getProperty(String key)