public class NewsletterListGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected CategoryProviderExtensionPoint |
_categoryProviderEP
The category provider extension point.
|
private AmetysObjectResolver |
_resolver |
protected SourceResolver |
_sourceResolver
The excalibur source resolver.
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
NewsletterListGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxCategory(Category category)
Sax a category.
|
private void |
_saxNewsletter(Content content,
boolean saxContent) |
protected void |
_saxNewsletterContent(Content content)
Sax the newsletter content.
|
protected void |
_saxRssFeed(Category category)
Sax the link to the newsletter archives RSS feed.
|
void |
generate() |
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected CategoryProviderExtensionPoint _categoryProviderEP
protected SourceResolver _sourceResolver
private AmetysObjectResolver _resolver
public NewsletterListGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxCategory(Category category) throws SAXException
category
- the category to saxSAXException
- if an error occurred while saxingprivate void _saxNewsletter(Content content, boolean saxContent) throws SAXException, IOException
SAXException
IOException
protected void _saxNewsletterContent(Content content) throws SAXException, IOException
content
- the newsletter content.SAXException
- if an error occurred while saxingIOException
- if an I/O error occurredprotected void _saxRssFeed(Category category) throws SAXException, ProcessingException
category
- the category.SAXException
- if an error occurred while saxingProcessingException
- if an error occurred