data.feed = new SyndFeedImpl(); if ( Utils.isEmpty( meta.getVersion() ) ) { data.feed.setFeedType( "rss_2.0" );
/** * @see FeedPluginApi#getFeed() */ public SyndFeed getFeed(XWikiContext context) { return new SyndFeedImpl(); }
/** * Builds SyndFeedImpl from an JDOM document. * <p> * @param document JDOM document to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the JDOM document. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(Document document) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(document), preserveWireFeed); }
/** * Builds SyndFeedImpl from an Reader. * <p> * @param reader Reader to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the Reader. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(Reader reader) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(reader), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C SAX InputSource. * <p> * @param is W3C SAX InputSource to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C SAX InputSource. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(InputSource is) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(is), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C SAX InputSource. * <p> * @param is W3C SAX InputSource to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C SAX InputSource. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(InputSource is) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(is), preserveWireFeed); }
/** * Builds SyndFeedImpl from an JDOM document. * <p> * @param document JDOM document to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the JDOM document. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(Document document) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(document), preserveWireFeed); }
/** * Builds SyndFeedImpl from an Reader. * <p> * @param reader Reader to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the Reader. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(Reader reader) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(reader), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C DOM document. * <p> * @param document W3C DOM document to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C DOM document. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(org.w3c.dom.Document document) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(document), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C SAX InputSource. * <p> * @param is W3C SAX InputSource to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C SAX InputSource. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(InputSource is) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(is), preserveWireFeed); }
/** * Builds SyndFeedImpl from an Reader. * <p> * @param reader Reader to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the Reader. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(Reader reader) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(reader), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C DOM document. * <p> * @param document W3C DOM document to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C DOM document. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(org.w3c.dom.Document document) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(document), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C SAX InputSource. * <p> * @param is W3C SAX InputSource to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C SAX InputSource. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(InputSource is) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(is), preserveWireFeed); }
/** * Builds SyndFeedImpl from an JDOM document. * <p> * @param document JDOM document to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the JDOM document. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(Document document) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(document), preserveWireFeed); }
/** * Builds SyndFeedImpl from an W3C DOM document. * <p> * @param document W3C DOM document to read to create the SyndFeedImpl. * @return the SyndFeedImpl read from the W3C DOM document. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. * @throws FeedException if the feed could not be parsed * */ public SyndFeed build(org.w3c.dom.Document document) throws IllegalArgumentException,FeedException { return new SyndFeedImpl(_feedInput.build(document), preserveWireFeed); }
public static SyndFeed createFeed(Device device) { final SyndFeed feed = new SyndFeedImpl(); feed.setFeedType(ATOMFeedType.ATOM_10.getFeedType()); feed.setEncoding("UTF-8"); return feed; }
private SyndFeed createSyndFeed() { SyndFeed syndFeed = new SyndFeedImpl(); syndFeed.setTitle("laputa test"); syndFeed.setDescription("laputa"); syndFeed.setLink("http://www.techscore.com/"); syndFeed.setPublishedDate(new Date()); syndFeed.setLanguage("ja"); return syndFeed; }
/** * Constructor. * * @param ui either "xmlui" or "jspui" */ public SyndicationFeed(String ui) { feed = new SyndFeedImpl(); uiType = ui; ContentServiceFactory contentServiceFactory = ContentServiceFactory.getInstance(); itemService = contentServiceFactory.getItemService(); collectionService = contentServiceFactory.getCollectionService(); communityService = contentServiceFactory.getCommunityService(); }
private SyndFeedImpl createFeed() { SyndFeedImpl feed = new SyndFeedImpl(); feed.setTitle(getTitle()); feed.setDescription(getDescription()); feed.setAuthor("Nexus " + getApplicationStatusSource().getSystemStatus().getVersion()); feed.setPublishedDate(new Date()); return feed; }
private SyndFeed getSyndFeed() { // Create i18n bean I18NBean i18nbean = getI18NBean(); SyndFeed feed = new SyndFeedImpl(); feed.setTitle(i18nbean.getText("bookmark.rss.title")); feed.setLink(settingsManager.getGlobalSettings().getBaseUrl()); feed.setUri(settingsManager.getGlobalSettings().getBaseUrl()); feed.setDescription(i18nbean.getText("bookmark.rss.description")); return feed; }