public class FeedGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected FeedCache |
_feedCache
The feed cache
|
protected RenderingContextHandler |
_renderingContext
The rendering context handler.
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
FeedGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
_addAttribute(AttributesImpl atts,
String name,
Object value) |
private boolean |
_checkForInfiniteLoop(String src) |
private String |
_enclosureName(String url) |
private void |
_saxEnclosures(com.rometools.rome.feed.synd.SyndEntry entry) |
private void |
_saxErrorFeed(String errorName,
String url,
String name,
String messageError) |
private void |
_saxFeeds(com.rometools.rome.feed.synd.SyndFeed feed,
long length,
String url,
Boolean isCustom,
Boolean isSelected) |
private void |
_saxLength(long length) |
private void |
_saxMediaContent(com.rometools.modules.mediarss.types.MediaContent content,
boolean inGroup) |
private void |
_saxMediaRSS(com.rometools.rome.feed.synd.SyndEntry entry) |
void |
generate() |
private void |
saxMediaMetadata(com.rometools.modules.mediarss.types.Metadata metadata) |
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected FeedCache _feedCache
protected RenderingContextHandler _renderingContext
public FeedGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
private void _saxErrorFeed(String errorName, String url, String name, String messageError) throws SAXException
SAXException
private void _saxFeeds(com.rometools.rome.feed.synd.SyndFeed feed, long length, String url, Boolean isCustom, Boolean isSelected) throws SAXException
SAXException
private void _saxEnclosures(com.rometools.rome.feed.synd.SyndEntry entry) throws SAXException
SAXException
private void _saxMediaRSS(com.rometools.rome.feed.synd.SyndEntry entry) throws SAXException
SAXException
private void _saxMediaContent(com.rometools.modules.mediarss.types.MediaContent content, boolean inGroup) throws SAXException
SAXException
private void saxMediaMetadata(com.rometools.modules.mediarss.types.Metadata metadata) throws SAXException
SAXException
private boolean _checkForInfiniteLoop(String src)
private String _enclosureName(String url)
private void _addAttribute(AttributesImpl atts, String name, Object value)
private void _saxLength(long length) throws SAXException
SAXException