Package org.ametys.web.cocoon
Class SiteSitemapInformationGenerator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.xml.AbstractXMLProducer
-
- org.apache.cocoon.generation.AbstractGenerator
-
- org.apache.cocoon.generation.ServiceableGenerator
-
- org.ametys.web.cocoon.SiteSitemapInformationGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class SiteSitemapInformationGenerator extends ServiceableGenerator
SAX information on site or sitemap node. Use #siteName and/or #lang parameters.
-
-
Field Summary
Fields Modifier and Type Field Description private SitemapDecoratorsHandler
_decoratorsManager
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 SiteSitemapInformationGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_saxRootSitesInformation(AmetysObject rootSite)
private void
_saxSiteInformation(Site site)
private void
_saxSitemapInformation(Sitemap sitemap)
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
-
_siteManager
private SiteManager _siteManager
-
_decoratorsManager
private SitemapDecoratorsHandler _decoratorsManager
-
-
Constructor Detail
-
SiteSitemapInformationGenerator
public SiteSitemapInformationGenerator()
-
-
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
-
_saxSitemapInformation
private void _saxSitemapInformation(Sitemap sitemap) throws SAXException
- Throws:
SAXException
-
_saxSiteInformation
private void _saxSiteInformation(Site site) throws SAXException
- Throws:
SAXException
-
_saxRootSitesInformation
private void _saxRootSitesInformation(AmetysObject rootSite) throws SAXException
- Throws:
SAXException
-
-