Package org.ametys.web.filter
Class RSSGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class RSSGenerator extends ServiceableGenerator
Generates SAX events for RSS feed for contents matching aContentFilter
set in request attributes
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentFilterHelper
_contentFilterHelper
The content filter helper.private static int
_DEFAULT_MAX_COUNT
private RenderingContextHandler
_renderingContextHandler
private SourceResolver
_resolver
private SiteManager
_siteManager
-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description RSSGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_saxItem(Content content, String viewName, String siteName)
void
generate()
protected boolean
isOrphan(Content content)
Determines if a content is orphanvoid
service(ServiceManager smanager)
-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
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
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
_DEFAULT_MAX_COUNT
private static final int _DEFAULT_MAX_COUNT
- See Also:
- Constant Field Values
-
_contentFilterHelper
protected ContentFilterHelper _contentFilterHelper
The content filter helper.
-
_resolver
private SourceResolver _resolver
-
_siteManager
private SiteManager _siteManager
-
_renderingContextHandler
private RenderingContextHandler _renderingContextHandler
-
-
Constructor Detail
-
RSSGenerator
public RSSGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
isOrphan
protected boolean isOrphan(Content content)
Determines if a content is orphan- Parameters:
content
- the content to test- Returns:
- true if the content is orphan
-
_saxItem
private void _saxItem(Content content, String viewName, String siteName) throws SAXException, IOException
- Throws:
SAXException
IOException
-
-