Class Atom10Resource

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

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

    • Atom10Resource

      public Atom10Resource(@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

    • getAtom10

      @GET @Path("/atom/") public Atom10Resource.AtomFeed getAtom10(@QueryParam("length") @DefaultValue("64") int length)
      The method getAtom10 provides means to retrieve the Atom 1.0 of the latest postings.
      Parameters:
      length - the maximal number of items returned
      Returns:
      the Atom feed
    • getAtom10ByPkg

      @GET @Path("/atom/{pkg}.xml") public Atom10Resource.AtomFeed getAtom10ByPkg(@NonNull @PathParam("pkg") @NonNull String pkg, @QueryParam("length") @DefaultValue("64") int length)
      The method getAtom10ByPkg provides means to retrieve the Atom 1.0 of the latest postings.
      Parameters:
      pkg - the CTAN name of the package
      length - the maximal number of items returned
      Returns:
      the Atom feed