RSS

UI Extension

Oorian wrapper for RSS Add On

Status
Available
Version
v1.0.2
Supported Version
TBD
Released
2026-03-17
Licensing
Unknown
Usage Example

The RSS Add-On lets you serve RSS 2.0 feeds from your Oorian application. Extend RssFeed, implement createChannel(), and annotate with @Page to expose a feed endpoint.

Java
@Page("/feed")
public class BlogFeed extends RssFeed
{
    @Override
    protected RssChannel createChannel()
    {
        RssChannel channel = new RssChannel(
            "My Blog",
            "https://example.com",
            "Latest blog posts"
        );

        channel.setLanguage("en-us");
        channel.setAtomSelfLink("https://example.com/feed");

        // Add items from your data source
        for (BlogPost post : getBlogPosts())
        {
            RssItem item = new RssItem(
                post.getTitle(),
                post.getUrl(),
                post.getSummary()
            );

            item.setPubDate(post.getPublishedDate());
            item.setAuthor(post.getAuthorEmail());
            item.addCategory(post.getCategory());
            item.setContentEncoded(post.getHtmlContent());

            channel.addItem(item);
        }

        return channel;
    }
}

RssFeed handles the HTTP content type (application/rss+xml), XML serialization, and RSS namespace declarations automatically. The content:encoded extension is supported for embedding full HTML content in feed items.