org.apache.cocoon.portal.coplet.adapter.impl
Class URICopletAdapter
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.impl.AbstractComponent
org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
org.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 $
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 |
resolver
protected SourceResolver resolver
- The source resolver
URICopletAdapter
public URICopletAdapter()
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 datahandler
- The content handlererror
- 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.