org.apache.cocoon.acting
Class SessionValidatorAction

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.acting.AbstractAction
          extended by org.apache.cocoon.acting.AbstractConfigurableAction
              extended by org.apache.cocoon.acting.ConfigurableServiceableAction
                  extended by org.apache.cocoon.acting.AbstractComplementaryConfigurableAction
                      extended by org.apache.cocoon.acting.AbstractValidatorAction
                          extended by org.apache.cocoon.acting.SessionValidatorAction
All Implemented Interfaces:
Component, Configurable, LogEnabled, Serviceable, ThreadSafe, Action

public class SessionValidatorAction
extends AbstractValidatorAction
implements ThreadSafe

This is the action used to validate Session parameters (attributes). The parameters are described via the external xml file.

Version:
CVS $Id: SessionValidatorAction.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Martin Man, Christian Haul
See Also:
AbstractValidatorAction

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
SessionValidatorAction()
           
 
Method Summary
protected  HashMap createMapOfParameters(Map objectModel, Collection set)
          Reads parameter values for all parameters that are contained in the active constraint list.
protected  Map setResult(Map objectModel, Map actionMap, Map resultMap, boolean allOK)
          Add success indicator to resulting maps and clear actionMap if unsuccessful.
 
Methods inherited from class org.apache.cocoon.acting.AbstractValidatorAction
act, getDescriptor, getSetOfParameterNamesFromSitemap, indexConfiguration, isDescriptorReloadable, resolveConstraints, validateParameter, validateParameter, validateSetOfParameters, validateValue
 
Methods inherited from class org.apache.cocoon.acting.AbstractComplementaryConfigurableAction
getConfiguration, getConfiguration, getConfiguration
 
Methods inherited from class org.apache.cocoon.acting.ConfigurableServiceableAction
service
 
Methods inherited from class org.apache.cocoon.acting.AbstractConfigurableAction
configure
 
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

SessionValidatorAction

public SessionValidatorAction()
Method Detail

createMapOfParameters

protected HashMap createMapOfParameters(Map objectModel,
                                        Collection set)
Description copied from class: AbstractValidatorAction
Reads parameter values for all parameters that are contained in the active constraint list. If a parameter has multiple values, all are stored in the resulting map.

Specified by:
createMapOfParameters in class AbstractValidatorAction
Parameters:
objectModel - the object model
set - a collection of parameter names
Returns:
HashMap

setResult

protected Map setResult(Map objectModel,
                        Map actionMap,
                        Map resultMap,
                        boolean allOK)
Description copied from class: AbstractValidatorAction
Add success indicator to resulting maps and clear actionMap if unsuccessful. Results are stored as request attributes.

Overrides:
setResult in class AbstractValidatorAction
Parameters:
objectModel - the object model
actionMap - a Map containing validated parameters
resultMap - a Map containing validation results
allOK - a boolean indicating if all validations were successful
Returns:
actionMap if allOK or null otherwise


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.