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

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.DefaultCopletAspect
All Implemented Interfaces:
LogEnabled, RendererAspect, Serviceable, ThreadSafe

public class DefaultCopletAspect
extends AbstractAspect

This aspect directly invokes the coplet adapter to stream out the coplet content. An alternative solution is to generate only cinclude tags by using the CIncludeCopletAspect and include the coplet contents later. That would allow caching up to the point of the cinclude transformer.

Example XML:

 <content>
   <!-- content streamed from coplet -->
 </content>
 

Applicable to:

Version:
$Id: DefaultCopletAspect.java 322471 2005-10-16 13:24:19Z 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
DefaultCopletAspect()
           
 
Method Summary
 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

DefaultCopletAspect

public DefaultCopletAspect()
Method Detail

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.