Package hudson.model

Class RSS


  • public final class RSS
    extends Object
    RSS related code.
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • RSS

        public RSS()
    • Method Detail

      • forwardToRss

        public static <E> void forwardToRss​(String title,
                                            String url,
                                            Collection<? extends E> entries,
                                            FeedAdapter<E> adapter,
                                            org.kohsuke.stapler.StaplerRequest req,
                                            javax.servlet.http.HttpServletResponse rsp)
                                     throws IOException,
                                            javax.servlet.ServletException
        Sends the RSS feed to the client.
        Parameters:
        title - Title of the feed.
        url - URL of the model object that owns this feed. Relative to the context root.
        entries - Entries to be listed in the RSS feed.
        adapter - Controls how to render entries to RSS.
        Throws:
        IOException
        javax.servlet.ServletException
      • rss

        public static void rss​(org.kohsuke.stapler.StaplerRequest req,
                               org.kohsuke.stapler.StaplerResponse rsp,
                               String title,
                               String url,
                               RunList runList)
                        throws IOException,
                               javax.servlet.ServletException
        Sends the RSS feed to the client using a default feed adapter.
        Parameters:
        title - Title of the feed.
        url - URL of the model object that owns this feed. Relative to the context root.
        runList - Entries to be listed in the RSS feed.
        Throws:
        IOException
        javax.servlet.ServletException
        Since:
        2.215
      • rss

        public static void rss​(org.kohsuke.stapler.StaplerRequest req,
                               org.kohsuke.stapler.StaplerResponse rsp,
                               String title,
                               String url,
                               RunList runList,
                               FeedAdapter<Run> feedAdapter)
                        throws IOException,
                               javax.servlet.ServletException
        Sends the RSS feed to the client using a specific feed adapter.
        Parameters:
        title - Title of the feed.
        url - URL of the model object that owns this feed. Relative to the context root.
        runList - Entries to be listed in the RSS feed.
        feedAdapter - Controls how to render entries to RSS.
        Throws:
        IOException
        javax.servlet.ServletException
        Since:
        2.215