Package org.ctan.site.resources.postings
Class Rss20Resource
java.lang.Object
org.ctan.site.resources.postings.Rss20Resource
The class
Rss20Resource contains the controller for the RSS feed
resource.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe classRsscontains the top node of RSS 2.0.static classThe classRssChannelcontains the channel node of RSS 2.0.static classThe classRssGuidcontains the guid node of RSS 2.0.static classThe classRssImagecontains the image node of RSS 2.0.static classThe classRssItemcontains the item node of RSS 2.0. -
Constructor Summary
ConstructorsConstructorDescriptionRss20Resource(@NonNull PostingCache service, @NonNull CtanConfiguration config) This is the constructor for the classRssResource. -
Method Summary
Modifier and TypeMethodDescriptiongetRss20(int length) The methodgetRss20provides means to retrieve the RSS 2.0 of the latest postings.getRss20ByPkg(@NonNull String pkg, int length) The methodgetRss20ByPkprovides means to retrieve the RSS 2.0 of the latest postings.
-
Constructor Details
-
Rss20Resource
public Rss20Resource(@NonNull @NonNull PostingCache service, @NonNull @NonNull CtanConfiguration config) This is the constructor for the classRssResource.- Parameters:
service- the underlying serviceconfig- the configuration
-
-
Method Details
-
getRss20
@GET @Path("/rss") public Rss20Resource.Rss getRss20(@QueryParam("length") @DefaultValue("64") int length) The methodgetRss20provides means to retrieve the RSS 2.0 of the latest postings.- Parameters:
length- the maximal number of items returned- Returns:
- the RSS feed
-
getRss20ByPkg
@GET @Path("/rss/{pkg}.xml") public Rss20Resource.Rss getRss20ByPkg(@NonNull @PathParam("pkg") @NonNull String pkg, @QueryParam("length") @DefaultValue("64") int length) The methodgetRss20ByPkprovides means to retrieve the RSS 2.0 of the latest postings.- Parameters:
pkg- the CTAN name of the packagelength- the maximal number of items returned- Returns:
- the RSS feed
-