Package org.ametys.web.content
Class ContentGenerator
-
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
- Direct Known Subclasses:
ContentGenerator,OrgUnitGenerator
public class ContentGenerator extends ContentGenerator
Generatorfor rendering raw content data.
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.content.ContentGenerator
_contentSaxer, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT
-
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 ContentGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_saxOtherData(Content content)SAX any other data needed by the view.protected LocalegetDefaultLocale(Request request)Get the default locale to use to sax localized valuesvoidservice(ServiceManager serviceManager)-
Methods inherited from class org.ametys.cms.content.ContentGenerator
_generateContent, _getView, _saxAttributesComments, _saxContent, _saxOtherData, generate
-
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
-
-
-
-
Constructor Detail
-
ContentGenerator
public ContentGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classContentGenerator- Throws:
ServiceException
-
getDefaultLocale
protected Locale getDefaultLocale(Request request)
Description copied from class:ContentGeneratorGet the default locale to use to sax localized values- Overrides:
getDefaultLocalein classContentGenerator- Parameters:
request- the request- Returns:
- the default locale
-
_saxOtherData
protected void _saxOtherData(Content content) throws SAXException, ProcessingException
Description copied from class:ContentGeneratorSAX any other data needed by the view.Default implementation does nothing.
- Overrides:
_saxOtherDatain classContentGenerator- Parameters:
content- the content.- Throws:
SAXException- if an error occurs while SAXing.ProcessingException- if an error occurs.
-
-