org.apache.cocoon.acting
Class SectionCutterAction

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.acting.AbstractAction
          extended byorg.apache.cocoon.acting.AbstractConfigurableAction
              extended byorg.apache.cocoon.acting.ConfigurableServiceableAction
                  extended byorg.apache.cocoon.acting.SectionCutterAction
All Implemented Interfaces:
Action, Configurable, LogEnabled, Serviceable, ThreadSafe

public class SectionCutterAction
extends ConfigurableServiceableAction
implements ThreadSafe

An action designed to set any number of variables, based on the current site section. The action matches the request uri against a configurable set of regular expressions (note: currently not implemented. Checking the beggining of the URI). When an expression matches, the action will set the configured variable in the Map.

Version:
CVS $Id: SectionCutterAction.java 155061 2005-02-23 20:10:26Z cziegeler $
Author:
Sergio Carvalho

Field Summary
 
Fields inherited from class org.apache.cocoon.acting.ConfigurableServiceableAction
manager
 
Fields inherited from class org.apache.cocoon.acting.AbstractConfigurableAction
settings
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
SectionCutterAction()
           
 
Method Summary
 Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String src, Parameters par)
          A simple Action that logs if the Session object has been created
 void configure(Configuration conf)
          Description of the Method
 
Methods inherited from class org.apache.cocoon.acting.ConfigurableServiceableAction
service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionCutterAction

public SectionCutterAction()
Method Detail

configure

public void configure(Configuration conf)
               throws ConfigurationException
Description of the Method

Specified by:
configure in interface Configurable
Overrides:
configure in class AbstractConfigurableAction
Parameters:
conf - Description of Parameter
Throws:
ConfigurationException - Description of Exception

act

public Map act(Redirector redirector,
               SourceResolver resolver,
               Map objectModel,
               String src,
               Parameters par)
        throws Exception
A simple Action that logs if the Session object has been created

Specified by:
act in interface Action
Parameters:
redirector - Description of Parameter
resolver - Description of Parameter
objectModel - Description of Parameter
src - Description of Parameter
par - Description of Parameter
Returns:
Description of the Returned Value
Throws:
Exception - Description of Exception


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.