org.apache.cocoon.acting
Class SessionPropagatorAction
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.acting.AbstractAction
|
+--org.apache.cocoon.acting.AbstractConfigurableAction
|
+--org.apache.cocoon.acting.SessionPropagatorAction
- All Implemented Interfaces:
- Action, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.thread.ThreadSafe
- public class SessionPropagatorAction
- extends AbstractConfigurableAction
- implements org.apache.avalon.framework.thread.ThreadSafe
This is the action used to propagate parameters into session. It
simply propagates given expression to the session. If session does not
exist, action fails. Additionaly it will make all propagated values
available via returned Map.
<map:act type="session-propagator">
<paramater name="example" value="{example}">
<paramater name="example1" value="xxx">
</map:act>
- Version:
- CVS $Id: SessionPropagatorAction.java,v 1.7.2.1 2002/09/11 12:43:58 sylvain Exp $
- Author:
- Martin Man
Fields inherited from interface org.apache.cocoon.acting.Action |
ROLE |
Method Summary |
java.util.Map |
act(Redirector redirector,
SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters parameters)
Main invocation routine. |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Configures the Action.
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionPropagatorAction
public SessionPropagatorAction()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Description copied from class:
AbstractConfigurableAction
- 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.
- Overrides:
configure
in class AbstractConfigurableAction
act
public java.util.Map act(Redirector redirector,
SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws java.lang.Exception
- Main invocation routine.
- Following copied from interface:
org.apache.cocoon.acting.Action
- Parameters:
resolver
- The SourceResolver
in chargeobjectModel
- The Map
with object of the
calling environment which can be used
to select values this controller may need
(ie Request, Response).source
- A source String
to the Actionparameters
- The Parameters
for this invocation- Returns:
- Map The returned
Map
object with
sitemap substitution values which can be used
in subsequent elements attributes like src=
using a xpath like expression: src="mydir/{myval}/foo"
If the return value is null the processing inside
the element of the sitemap will
be skipped.- Throws:
java.lang.Exception
- Indicates something is totally wrong
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.