org.apache.cocoon.components.language.markup.xsp
Class XSPModuleHelper

java.lang.Object
  extended by org.apache.cocoon.components.modules.input.InputModuleHelper
      extended by org.apache.cocoon.components.language.markup.xsp.XSPModuleHelper

public class XSPModuleHelper
extends InputModuleHelper

Helper class that caches references to InputModules for use in XSPs. Works in conjunction with the input.xsl logicsheet. References are obtained the first time a module is accessed and kept until the page is completely displayed.

Version:
CVS $Id: XSPModuleHelper.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Christian Haul

Field Summary
 
Fields inherited from class org.apache.cocoon.components.modules.input.InputModuleHelper
INPUT_MODULE_SELECTOR
 
Constructor Summary
XSPModuleHelper()
           
 
Method Summary
 void getAttributeNames(Map objectModel, ContentHandler contentHandler, String module)
          Output attribute names for a given request
 void getAttributeValues(Map objectModel, ContentHandler contentHandler, String module, String name)
          Output the request attribute values for a given name to the content handler.
 
Methods inherited from class org.apache.cocoon.components.modules.input.InputModuleHelper
getAttribute, getAttribute, getAttributeNames, getAttributeNames, getAttributeValues, getAttributeValues, releaseAll, setup, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSPModuleHelper

public XSPModuleHelper()
Method Detail

getAttributeValues

public void getAttributeValues(Map objectModel,
                               ContentHandler contentHandler,
                               String module,
                               String name)
                        throws SAXException,
                               RuntimeException
Output the request attribute values for a given name to the content handler.

Parameters:
objectModel - The Map objectModel
contentHandler - The SAX content handler
module - a String value holding the module name
name - a String value holding the attribute name
Throws:
SAXException - If a SAX error occurs
RuntimeException - if an error occurs

getAttributeNames

public void getAttributeNames(Map objectModel,
                              ContentHandler contentHandler,
                              String module)
                       throws SAXException,
                              RuntimeException
Output attribute names for a given request

Parameters:
objectModel - The Map objectModel
contentHandler - The SAX content handler
module - the module's name
Throws:
SAXException - If a SAX error occurs
RuntimeException - if an error occurs


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