Keel 2.1RC2

org.keel.clients.cocoon
Class ModelAction

java.lang.Object
  extended byComposerAction
      extended byorg.keel.clients.cocoon.ModelAction
All Implemented Interfaces:
Configurable, Contextualizable, LogEnabled, ThreadSafe

public class ModelAction
extends ComposerAction
implements ThreadSafe, Configurable, LogEnabled, Contextualizable

This action makes response attributes available to the sitemap via parameter substitution.

Version:
$Revision: 1.6 $ $Date: 2004/05/11 20:44:19 $
Author:
Michael Nash, Schatterjee Created on May 24, 2003
See Also:
Serialized Form

Field Summary
private  java.lang.String cocoonClientConnectorClassName
           
private static Log commonsLog
          Commons Logging instance.
private static Logger log
           
private  Configuration myConf
           
private  Context myContext
           
 
Constructor Summary
ModelAction()
           
 
Method Summary
 java.util.Map act(Redirector redirector, SourceResolver resolver, java.util.Map objectModel, java.lang.String source, Parameters param)
           
 void configure(Configuration conf)
          Pass the Configuration to the Configurable class.
 void contextualize(Context newContext)
          Pass the Context to the component.
 void enableLogging(Logger newLog)
          Provide component with a logger.
private  CocoonClientConnector getConnector(Request request, Response response, Configuration myConf, java.lang.String source, java.lang.String root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonsLog

private static Log commonsLog
Commons Logging instance.


myConf

private Configuration myConf

log

private static Logger log

myContext

private Context myContext

cocoonClientConnectorClassName

private java.lang.String cocoonClientConnectorClassName
Constructor Detail

ModelAction

public ModelAction()
Method Detail

contextualize

public void contextualize(Context newContext)
Description copied from interface: Contextualizable
Pass the Context to the component. This method is called after the Loggable.setLogger() (if present) method and before any other method.

Specified by:
contextualize in interface Contextualizable
Parameters:
newContext - the context. Must not be null.

configure

public void configure(Configuration conf)
Description copied from interface: Configurable
Pass the Configuration to the Configurable class.

Specified by:
configure in interface Configurable
Parameters:
conf - the class configurations. Must not be null.

act

public java.util.Map act(Redirector redirector,
                         SourceResolver resolver,
                         java.util.Map objectModel,
                         java.lang.String source,
                         Parameters param)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getConnector

private CocoonClientConnector getConnector(Request request,
                                           Response response,
                                           Configuration myConf,
                                           java.lang.String source,
                                           java.lang.String root)

enableLogging

public void enableLogging(Logger newLog)
Description copied from interface: LogEnabled
Provide component with a logger.

Specified by:
enableLogging in interface LogEnabled
Parameters:
newLog - the logger. Must not be null.

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.