net.sf.logdistiller.publishers
Class FeedPublisher
java.lang.Object
net.sf.logdistiller.Publisher
net.sf.logdistiller.publishers.FeedPublisher
public class FeedPublisher
- extends Publisher
Adds LogDistillation reports to a feed file (at the beginning). Any feed format supported by Rome can be used.
Parameters (as direct publisher param or global feed.* param):
filename (default: feed.xml): the feed file name (relative to output directory)
maxEntries (default: 100): maximum entries in the feed file: if new entries are added, oldest ones
are removed
When the feed file must be created, these parameters are used:
type (default: atom_0.3): the feed type (any value supported by Rome)
title: the feed title (default: "LogDistiller [logdistillation id]"
link: the feed link (default: LogDistiller's site)
description: the feed description (default: "LogDistiller reports for [logdistillation id]"
- Since:
- 0.7
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FEED_TYPE
public static final String DEFAULT_FEED_TYPE
- See Also:
- Constant Field Values
FeedPublisher
public FeedPublisher()
getId
public String getId()
- Description copied from class:
Publisher
- Get the publisher-id for this class.
- Specified by:
getId in class Publisher
- Returns:
- a unique publisher id
publish
public void publish(LogDistillation logdistillation,
LogDistiller.Report report)
throws IOException,
Publisher.PublishException
- Description copied from class:
Publisher
- Publish a global report.
- Specified by:
publish in class Publisher
- Parameters:
logdistillation - the logdistillation containing the results to publishreport - the report configuration
- Throws:
IOException
Publisher.PublishException
publish
public void publish(LogDistillation.Group group,
LogDistiller.Report report)
throws IOException,
Publisher.PublishException
- Description copied from class:
Publisher
- Publish a group report.
- Specified by:
publish in class Publisher
- Parameters:
group - the logdstillation group containing the results to publishreport - the report configuration
- Throws:
IOException
Publisher.PublishException
Copyright © 2004-2009. All Rights Reserved.