org.apache.cocoon.acting
Class SessionPropagatorAction

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.acting.AbstractAction
          extended byorg.apache.cocoon.acting.AbstractConfigurableAction
              extended byorg.apache.cocoon.acting.SessionPropagatorAction
All Implemented Interfaces:
org.apache.cocoon.acting.Action, Configurable, ThreadSafe

public class SessionPropagatorAction
extends org.apache.cocoon.acting.AbstractConfigurableAction
implements 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:
$Id: SessionPropagatorAction.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
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
SessionPropagatorAction()
           
 
Method Summary
 Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String src, Parameters parameters)
          Main invocation routine.
 void configure(Configuration conf)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionPropagatorAction

public SessionPropagatorAction()
Method Detail

configure

public void configure(Configuration conf)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

act

public Map act(org.apache.cocoon.environment.Redirector redirector,
               org.apache.cocoon.environment.SourceResolver resolver,
               Map objectModel,
               String src,
               Parameters parameters)
        throws Exception
Main invocation routine.

Specified by:
act in interface org.apache.cocoon.acting.Action
Throws:
Exception


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.