| | |
| | | import com.gitblit.Constants.FeedObjectType;
|
| | | import com.gitblit.GitBlitException;
|
| | | import com.gitblit.models.FeedEntryModel;
|
| | | import com.sun.syndication.feed.synd.SyndCategory;
|
| | | import com.sun.syndication.feed.synd.SyndCategoryImpl;
|
| | | import com.sun.syndication.feed.synd.SyndContent;
|
| | | import com.sun.syndication.feed.synd.SyndContentImpl;
|
| | | import com.sun.syndication.feed.synd.SyndEntry;
|
| | | import com.sun.syndication.feed.synd.SyndEntryImpl;
|
| | | import com.sun.syndication.feed.synd.SyndFeed;
|
| | | import com.sun.syndication.feed.synd.SyndFeedImpl;
|
| | | import com.sun.syndication.feed.synd.SyndImageImpl;
|
| | | import com.sun.syndication.io.FeedException;
|
| | | import com.sun.syndication.io.SyndFeedInput;
|
| | | import com.sun.syndication.io.SyndFeedOutput;
|
| | | import com.sun.syndication.io.XmlReader;
|
| | | import com.rometools.rome.feed.synd.SyndCategory;
|
| | | import com.rometools.rome.feed.synd.SyndCategoryImpl;
|
| | | import com.rometools.rome.feed.synd.SyndContent;
|
| | | import com.rometools.rome.feed.synd.SyndContentImpl;
|
| | | import com.rometools.rome.feed.synd.SyndEntry;
|
| | | import com.rometools.rome.feed.synd.SyndEntryImpl;
|
| | | import com.rometools.rome.feed.synd.SyndFeed;
|
| | | import com.rometools.rome.feed.synd.SyndFeedImpl;
|
| | | import com.rometools.rome.feed.synd.SyndImageImpl;
|
| | | import com.rometools.rome.io.FeedException;
|
| | | import com.rometools.rome.io.SyndFeedInput;
|
| | | import com.rometools.rome.io.SyndFeedOutput;
|
| | | import com.rometools.rome.io.XmlReader;
|
| | |
|
| | | /**
|
| | | * Utility class for RSS feeds.
|
| | |
| | | feed.setEncoding("UTF-8");
|
| | | feed.setTitle(title);
|
| | | feed.setLink(feedLink);
|
| | | feed.setDescription(description);
|
| | | if (StringUtils.isEmpty(description)) {
|
| | | feed.setDescription(title);
|
| | | } else {
|
| | | feed.setDescription(description);
|
| | | }
|
| | | SyndImageImpl image = new SyndImageImpl();
|
| | | image.setTitle(Constants.NAME);
|
| | | image.setUrl(hostUrl + "/gitblt_25.png");
|