org.apache.cocoon.portal.coplet.adapter.impl
Class ApplicationCopletAdapter

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
          extended by org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
              extended by org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter
                  extended by 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

Field Summary
 
Fields inherited from class org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter
cache, CACHE, CONFIGURATION_CACHE_GLOBAL, CONFIGURATION_CACHE_GLOBAL_USE_ATTRIBUTES, CONFIGURATION_ENABLE_CACHING, CONFIGURATION_IGNORE_SIZING_EVENTS, DO_NOT_CACHE, enableCaching, PARAMETER_DISABLE_CACHING
 
Fields inherited from class org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
context, resolver
 
Fields inherited from class org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
manager
 
Fields inherited from interface org.apache.cocoon.portal.coplet.adapter.CopletAdapter
ROLE
 
Constructor Summary
ApplicationCopletAdapter()
           
 
Method Summary
 void handleCopletInstanceEvent(CopletInstanceEvent e)
          This adapter listens for CopletLinkEvents.
protected  boolean renderErrorContent(CopletInstanceData coplet, ContentHandler handler)
          Render the error content for a coplet
 void streamContent(CopletInstanceData coplet, String uri, ContentHandler contentHandler)
           
 
Methods inherited from class org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter
dispose, getCacheKey, inform, isSizingEvent, parameterize, service, streamContent
 
Methods inherited from class org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
contextualize, initialize, renderErrorContent
 
Methods inherited from class org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
destroy, getConfiguration, getConfiguration, init, login, logout, toSAX
 
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

ApplicationCopletAdapter

public ApplicationCopletAdapter()
Method Detail

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.