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_decoratorsManagerprotected 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 aSiteprotected void_saxSitemap(Sitemap sitemap)SAX aSitemapvoidgenerate()voidservice(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:
 servicein interfaceServiceable- Overrides:
 servicein 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
 
 - 
 
 -