Package org.ctan.site.resources.postings
Class Atom10Resource
java.lang.Object
org.ctan.site.resources.postings.Atom10Resource
The class
Atom10Resource
contains the controller for the ATOM
feed resource.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The classAtomEntry
contains the item node of Atom 1.0.static class
The classAtom
contains the top node of Atom 1.0.static class
The classAtomGenerator
contains the Generator node of Atom 1.0.static class
The classAtomLink
contains the Link node of Atom 1.0. -
Constructor Summary
ConstructorsConstructorDescriptionAtom10Resource
(@NonNull PostingCache service, @NonNull CtanConfiguration config) This is the constructor for the classRssResource
. -
Method Summary
Modifier and TypeMethodDescriptiongetAtom10
(int length) The methodgetAtom10
provides means to retrieve the Atom 1.0 of the latest postings.getAtom10ByPkg
(@NonNull String pkg, int length) The methodgetAtom10ByPkg
provides means to retrieve the Atom 1.0 of the latest postings.
-
Constructor Details
-
Atom10Resource
public Atom10Resource(@NonNull @NonNull PostingCache service, @NonNull @NonNull CtanConfiguration config) This is the constructor for the classRssResource
.- Parameters:
service
- the underlying serviceconfig
- the configuration
-
-
Method Details
-
getAtom10
@GET @Path("/atom/") public Atom10Resource.AtomFeed getAtom10(@QueryParam("length") @DefaultValue("64") int length) The methodgetAtom10
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 methodgetAtom10ByPkg
provides means to retrieve the Atom 1.0 of the latest postings.- Parameters:
pkg
- the CTAN name of the packagelength
- the maximal number of items returned- Returns:
- the Atom feed
-