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 methodsitemapprovides means to retrieve the site map as JSON.The methodsitemapVersionprovides means to retrieve the current version number.The methodsitemapXmlprovides means to the site map as XML.
-
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 methodsitemapprovides 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 methodsitemapVersionprovides means to retrieve the current version number.- Returns:
- the version number as string
-
sitemapXml
The methodsitemapXmlprovides means to the site map as XML.- Returns:
- the urlset
-