org.apache.cocoon.acting
Class AbstractConfigurableAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.AbstractConfigurableAction
- All Implemented Interfaces:
- Action, Configurable, LogEnabled
- Direct Known Subclasses:
- ConfigurableServiceableAction, HttpCacheAction, HttpHeaderAction, RequestParameterExistsAction, SessionPropagatorAction, SessionStateAction
- public abstract class AbstractConfigurableAction
- extends AbstractAction
- implements Configurable
AbstractConfigurableAction gives you the infrastructure for easily
deploying more Actions that take default parameters.
- Version:
- CVS $Id: AbstractConfigurableAction.java 30941 2004-07-29 19:56:58Z vgritsenko $
- Author:
- Christian Haul
Field Summary |
protected HashMap |
settings
Stores (global) configuration parameters as key /
value pairs. |
Fields inherited from interface org.apache.cocoon.acting.Action |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.acting.Action |
act |
settings
protected HashMap settings
- Stores (global) configuration parameters as
key
/
value
pairs.
AbstractConfigurableAction
public AbstractConfigurableAction()
configure
public void configure(Configuration conf)
throws ConfigurationException
- Configures the Action.
Takes the children from the
Configuration
and stores them
them as key (configuration name) and value (configuration value)
in settings
.
This automates parsing of flat string-only configurations.
For nested configurations, override this function in your action.
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.