Package hudson.model
Class RSS
java.lang.Object
hudson.model.RSS
RSS related code.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> void
forwardToRss
(String title, String url, Collection<? extends E> entries, FeedAdapter<E> adapter, org.kohsuke.stapler.StaplerRequest req, javax.servlet.http.HttpServletResponse rsp) Sends the RSS feed to the client.static void
rss
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String title, String url, RunList runList) Sends the RSS feed to the client using a default feed adapter.static void
rss
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String title, String url, RunList runList, FeedAdapter<Run> feedAdapter) Sends the RSS feed to the client using a specific feed adapter.
-
Constructor Details
-
RSS
public RSS()
-
-
Method Details
-
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
-