Package org.ctan.site.resources
Class Sitemap3Resource
java.lang.Object
org.ctan.site.resources.Sitemap3Resource
The class
Sitemap3Resource
contains the controller for the
version resource.-
Constructor Summary
ConstructorsConstructorDescriptionSitemap3Resource
(@NonNull SitemapService service) This is the constructor forSitemap3Resource
. -
Method Summary
Modifier and TypeMethodDescriptionsitemap()
The methodsitemap
provides means to retrieve the site map as JSON.The methodsitemapVersion
provides means to retrieve the current version number.The methodsitemapXml
provides means to the site map as XML.sitemapXml
(String idx) The methodsitemapXml
provides means to TODO gene.
-
Constructor Details
-
Sitemap3Resource
This is the constructor forSitemap3Resource
.- Parameters:
service
- the underlying service
-
-
Method Details
-
sitemap
@GET @Path("sitemap") @Produces("application/json") @PermitAll public SitemapService.SitemapList sitemap()The methodsitemap
provides means to retrieve the site map as JSON.- Returns:
- the sitemap items
-
sitemapVersion
@GET @Path("sitemap/version") @Produces("application/json") @PermitAll public String sitemapVersion()The methodsitemapVersion
provides means to retrieve the current version number.- Returns:
- the version number as string
-
sitemapXml
The methodsitemapXml
provides means to the site map as XML.- Returns:
- the urlset
-
sitemapXml
@GET @Path("sitemap/xml/{idx}") @Produces("application/xml") @PermitAll public String sitemapXml(@PathParam("idx") String idx) The methodsitemapXml
provides means to TODO gene.- Parameters:
idx
- the index- Returns:
- the urlset
-