Package hudson.model
Class RSS
- java.lang.Object
-
- hudson.model.RSS
-
public final class RSS extends Object
RSS related code.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description RSS()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
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.
-
-
-
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
-
-