Package org.ametys.web.cocoon
Class SitemapGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class SitemapGenerator extends ServiceableGenerator
SAX child nodes of a node. The node can be a site, sitemap or page.
Waits for the id of the node to SAX in request parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected SitemapDecoratorsHandler
_decoratorsManager
protected AmetysObjectResolver
_resolver
-
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 SitemapGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_saxPage(Page page)
SAX a pageprotected void
_saxSite(Site site)
SAX aSite
protected void
_saxSitemap(Sitemap sitemap)
SAX aSitemap
void
generate()
void
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
-
_resolver
protected AmetysObjectResolver _resolver
-
_decoratorsManager
protected SitemapDecoratorsHandler _decoratorsManager
-
-
Constructor Detail
-
SitemapGenerator
public SitemapGenerator()
-
-
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
-
_saxPage
protected void _saxPage(Page page) throws SAXException
SAX a page- Parameters:
page
- The page to SAX- Throws:
SAXException
- If an error occurs while SAXing
-
_saxSite
protected void _saxSite(Site site) throws SAXException
SAX aSite
- Parameters:
site
- The site to SAX- Throws:
SAXException
- If an error occurs while SAXing
-
_saxSitemap
protected void _saxSitemap(Sitemap sitemap) throws SAXException
SAX aSitemap
- Parameters:
sitemap
- The sitemap to SAX- Throws:
SAXException
- If an error occurs while SAXing
-
-