Class Rss20Resource

java.lang.Object
org.ctan.site.resources.postings.Rss20Resource

@Path("/ctan-ann") @Produces("application/rss+xml") public class Rss20Resource extends Object
The class Rss20Resource contains the controller for the RSS feed resource.
See Also:
  • Constructor Details

    • Rss20Resource

      public Rss20Resource(@NonNull @NonNull PostingCache service, @NonNull @NonNull CtanConfiguration config)
      This is the constructor for the class RssResource.
      Parameters:
      service - the underlying service
      config - the configuration
  • Method Details

    • getRss20

      @GET @Path("/rss") public Rss20Resource.Rss getRss20(@QueryParam("length") @DefaultValue("64") int length)
      The method getRss20 provides 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 method getRss20ByPk provides means to retrieve the RSS 2.0 of the latest postings.
      Parameters:
      pkg - the CTAN name of the package
      length - the maximal number of items returned
      Returns:
      the RSS feed