feed.setDescription("Test return rss resource");
List<SyndEntry> entries = Lists.newArrayList();
for (Article article : articles) {
SyndEntry entry = new SyndEntryImpl();
entry.setTitle(article.getTitle());
entry.setLink("http://localhost:8080/article/" + article.getSlug()); // TODO: Make me configurable
entry.setPublishedDate(article.getDateCreated());
SyndContent description = new SyndContentImpl();
description.setType("text/html");
description.setValue(article.getText());
entry.setDescription(description);
entries.add(entry);
}
feed.setEntries(entries);