Package com.uphea.rss

Examples of com.uphea.rss.FeedEntry


    feed.setDescription("the nice way of asking smart questions");
    feed.setEncoding(StringPool.UTF_8);
    feed.setPublishedDate(DateUtil.toJDateTime(latestQuestion.getDate()));

    for (Question q : questions) {
      FeedEntry entry = new FeedEntry();
      entry.setPublishedDate(DateUtil.toJDateTime(q.getDate()));
      entry.setTitle(Format.textPlain(q.getText()));
      String link = feed.getLink() + "/q/" + q.getDate();
      entry.setLink(link);
      entry.setGuid(link);
      entry.setDescription("What do you think about?");
      feed.addEntry(entry);
    }
    return new RssData(feed);
  }
View Full Code Here

TOP

Related Classes of com.uphea.rss.FeedEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.