org.apache.cocoon.portal.layout.renderer.aspect.impl
Class HistoryAspect

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
          extended byorg.apache.cocoon.portal.layout.renderer.aspect.impl.HistoryAspect
All Implemented Interfaces:
LogEnabled, RendererAspect, Serviceable, ThreadSafe

public class HistoryAspect
extends AbstractAspect

Save the current state of the layout into the session. Takes into account state already present as request attribute. Includes aspect data and parameters as well as aspect data and attributes of a coplet instance if layout is a coplet layout. This aspect does not add to the XML created by the renderer chain.

Example XML

   <!-- output from following renderers --> 
 

Applicable to:

Version:
$Id: HistoryAspect.java 328461 2005-10-25 19:44:00Z cziegeler $

Field Summary
 
Fields inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
manager
 
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect
ROLE
 
Constructor Summary
HistoryAspect()
           
 
Method Summary
protected  void addValues(String id, List state, Map values, String prefix, boolean isCopletEvent)
          Add the values to the state
 void toSAX(RendererAspectContext context, Layout layout, PortalService service, ContentHandler handler)
          Stream out raw layout
 
Methods inherited from class org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
prepareConfiguration, 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

HistoryAspect

public HistoryAspect()
Method Detail

addValues

protected void addValues(String id,
                         List state,
                         Map values,
                         String prefix,
                         boolean isCopletEvent)
Add the values to the state

Parameters:
id -
state -
values -
isCopletEvent - tells if the event has to be a coplet event

toSAX

public void toSAX(RendererAspectContext context,
                  Layout layout,
                  PortalService service,
                  ContentHandler handler)
           throws SAXException
Description copied from interface: RendererAspect
Stream out raw layout

Specified by:
toSAX in interface RendererAspect
Overrides:
toSAX in class AbstractAspect
Throws:
SAXException
See Also:
RendererAspect.toSAX(org.apache.cocoon.portal.layout.renderer.aspect.RendererAspectContext, org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)


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