Class XmlLicenseResource
java.lang.Object
org.ctan.site.resources.catalogue.api.XmlLicenseResource
The class
XmlLicenseResource
contains the controller for the
author resource.-
Constructor Summary
ConstructorsConstructorDescriptionXmlLicenseResource
(@NonNull LicenseStore store) This is the constructor for the classXmlLicenseResource
. -
Method Summary
-
Constructor Details
-
XmlLicenseResource
This is the constructor for the classXmlLicenseResource
.- Parameters:
store
- the underlying store
-
-
Method Details
-
getLicenses
@GET @Path("/xml/{vers}/licenses") @PermitAll @UnitOfWork("siteDb") public String getLicenses(@NonNull @PathParam("vers") @NonNull String vers, @QueryParam("key") String key, @QueryParam("no-dtd") @DefaultValue("false") Boolean noDtd, @QueryParam("no-xml") @DefaultValue("false") Boolean noXml) The methodgetLicenses
provides means to retrieve a list of licenses starting with a given pattern.- Parameters:
vers
- the version numberkey
- the key- Returns:
- a list of matching license summaries
-