org.apache.cocoon.portal.coplet.adapter.impl
Class ApplicationCopletAdapter
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter
org.apache.cocoon.portal.coplet.adapter.impl.ApplicationCopletAdapter
- All Implemented Interfaces:
- Disposable, Initializable, Component, Contextualizable, LogEnabled, Parameterizable, Serviceable, ThreadSafe, CopletAdapter, Receiver
public class ApplicationCopletAdapter
- extends CachingURICopletAdapter
This coplet adapter is used to connect to external applications that are
plugged into the portal.
- Version:
- CVS $Id: ApplicationCopletAdapter.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Gerald Kahrer
Fields inherited from interface org.apache.cocoon.portal.coplet.adapter.CopletAdapter |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationCopletAdapter
public ApplicationCopletAdapter()
streamContent
public void streamContent(CopletInstanceData coplet,
String uri,
ContentHandler contentHandler)
throws SAXException
- Overrides:
streamContent
in class CachingURICopletAdapter
- Throws:
SAXException
- See Also:
URICopletAdapter.streamContent(org.apache.cocoon.portal.coplet.CopletInstanceData, java.lang.String, org.xml.sax.ContentHandler)
handleCopletInstanceEvent
public void handleCopletInstanceEvent(CopletInstanceEvent e)
- This adapter listens for CopletLinkEvents. If it catches one the link uri is saved in
the coplet instance data for further handling in the ProxyTransformer.
There is a special CopletLinkEvent with the uri "createNewCopletInstance", which is the
trigger to create a new instance of the one that is the target of the event.
- Overrides:
handleCopletInstanceEvent
in class CachingURICopletAdapter
renderErrorContent
protected boolean renderErrorContent(CopletInstanceData coplet,
ContentHandler handler)
throws SAXException
- Render the error content for a coplet
- Parameters:
coplet
- handler
-
- Returns:
- True if the error content has been rendered, otherwise false
- Throws:
SAXException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.