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

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.impl.AbstractComponent
          extended byorg.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
              extended byorg.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter
All Implemented Interfaces:
Contextualizable, CopletAdapter, Disposable, Initializable, LogEnabled, Serviceable, ThreadSafe
Direct Known Subclasses:
CachingURICopletAdapter

public class URICopletAdapter
extends AbstractCopletAdapter

This is the adapter to use pipelines as coplets.

Version:
$Id: URICopletAdapter.java 326672 2005-10-19 20:11:10Z cziegeler $

Field Summary
protected  SourceResolver resolver
          The source resolver
 
Fields inherited from class org.apache.cocoon.portal.impl.AbstractComponent
context, manager, portalService
 
Fields inherited from interface org.apache.cocoon.portal.coplet.adapter.CopletAdapter
ROLE
 
Constructor Summary
URICopletAdapter()
           
 
Method Summary
 void dispose()
           
protected  boolean renderErrorContent(CopletInstanceData coplet, ContentHandler handler, Exception error)
          Render the error content for a coplet
 void service(ServiceManager manager)
           
 void streamContent(CopletInstanceData coplet, ContentHandler contentHandler)
          Implement this and not toSAX()
 void streamContent(CopletInstanceData coplet, String uri, ContentHandler contentHandler)
           
 
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.cocoon.portal.impl.AbstractComponent
contextualize, initialize
 
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
 

Field Detail

resolver

protected SourceResolver resolver
The source resolver

Constructor Detail

URICopletAdapter

public URICopletAdapter()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Overrides:
service in class AbstractComponent
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

streamContent

public void streamContent(CopletInstanceData coplet,
                          ContentHandler contentHandler)
                   throws SAXException
Description copied from class: AbstractCopletAdapter
Implement this and not toSAX()

Specified by:
streamContent in class AbstractCopletAdapter
Throws:
SAXException
See Also:
AbstractCopletAdapter.streamContent(org.apache.cocoon.portal.coplet.CopletInstanceData, org.xml.sax.ContentHandler)

streamContent

public void streamContent(CopletInstanceData coplet,
                          String uri,
                          ContentHandler contentHandler)
                   throws SAXException
Throws:
SAXException

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Overrides:
dispose in class AbstractComponent
See Also:
Disposable.dispose()

renderErrorContent

protected boolean renderErrorContent(CopletInstanceData coplet,
                                     ContentHandler handler,
                                     Exception error)
                              throws SAXException
Render the error content for a coplet

Overrides:
renderErrorContent in class AbstractCopletAdapter
Parameters:
coplet - The coplet instance data
handler - The content handler
error - The exception that occured
Returns:
True if the error content has been rendered, otherwise false
Throws:
SAXException


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