Exemplo n.º 1
0
 @SuppressWarnings("unchecked")
 private Outline buildSubscriptionOutline(FeedSubscription sub) {
   Outline outline = new Outline();
   outline.setText(sub.getTitle());
   outline.setTitle(sub.getTitle());
   outline.setType("rss");
   outline.getAttributes().add(new Attribute("xmlUrl", sub.getFeed().getUrl()));
   if (sub.getFeed().getLink() != null) {
     outline.getAttributes().add(new Attribute("htmlUrl", sub.getFeed().getLink()));
   }
   return outline;
 }