data.feed.setPublishedDate( Pubdate ); // data.dateParser.parse(Pubdate.toString()));
public SyndFeed generateFeed( String title, String description, List<RssFeedEntry> dataEntries ) { if( dataEntries.size() == 0 ) { log.debug( "No updates found, feed not generated." ); return null; } SyndFeed feed = new SyndFeedImpl(); feed.setTitle( title ); feed.setDescription( description ); feed.setLanguage( DEFAULT_LANGUAGE ); feed.setPublishedDate( dataEntries.get( dataEntries.size() - 1 ).getPublishedDate() ); feed.setFeedType( DEFAULT_FEEDTYPE ); feed.setEntries( getEntries( dataEntries ) ); log.debug( "Finished generating the feed \'{}\'.", title ); 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; }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate!=null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author!=null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
@Override public void copyInto(WireFeed feed, SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel, syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate != null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author != null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
@Override public void copyInto(WireFeed feed, SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel, syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate != null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author != null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); syndFeed.setLanguage(channel.getLanguage()); //c syndFeed.setCopyright(channel.getCopyright()); //c Date pubDate = channel.getPubDate(); if (pubDate!=null) { syndFeed.setPublishedDate(pubDate); //c } else if (channel.getLastBuildDate() != null) { syndFeed.setPublishedDate(channel.getLastBuildDate()); //c } String author = channel.getManagingEditor(); if (author!=null) { List creators = ((DCModule) syndFeed.getModule(DCModule.URI)).getCreators(); if (!creators.contains(author)) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(creators); // DC creators s.add(author); // feed native author creators.clear(); creators.addAll(s); } } }
localize(labels, MSG_FEED_TITLE) : defaultTitle); feed.setLink(objectURL); feed.setPublishedDate(new Date()); feed.setUri(objectURL);
syndFeed.setPublishedDate(date);
syndFeed.setPublishedDate(date);
syndFeed.setPublishedDate(date);
syndFeed.setPublishedDate(date);
syndFeed.setPublishedDate(date);
syndFeed.setPublishedDate(date);