org.apache.cocoon.acting
Class LinkTranslatorMapAction

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.acting.AbstractAction
          extended byorg.apache.cocoon.acting.ServiceableAction
              extended byorg.apache.cocoon.acting.LinkTranslatorMapAction
All Implemented Interfaces:
Action, LogEnabled, Serviceable, ThreadSafe

public class LinkTranslatorMapAction
extends ServiceableAction
implements ThreadSafe

This action sets a new LINK_OBJECT entry in the objectModel entry.

Since:
16 December 2002
Version:
CVS $Id: LinkTranslatorMapAction.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Bernhard Huber

Nested Class Summary
static class LinkTranslatorMapAction.LinkPatternHashMap
          A special links map
 
Field Summary
 
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
LinkTranslatorMapAction()
           
 
Method Summary
 Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
          Execute the LinkTranslatorMapAction.
 
Methods inherited from class org.apache.cocoon.acting.ServiceableAction
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

LinkTranslatorMapAction

public LinkTranslatorMapAction()
Method Detail

act

public Map act(Redirector redirector,
               SourceResolver resolver,
               Map objectModel,
               String source,
               Parameters parameters)
        throws Exception
Execute the LinkTranslatorMapAction.

Specified by:
act in interface Action
Parameters:
redirector - Cocoon's redirector
resolver - Cocoon's source resolver, used for testing if a source is resolvable
source - the source, e.g.: index.html
parameters - of this action
objectModel - Description of the Parameter
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:
Exception - Description of the Exception


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