Search in sources :

Example 6 with MCRIIIFPresentationManifestQuickAccess

use of org.mycore.iiif.presentation.MCRIIIFPresentationManifestQuickAccess in project mycore by MyCoRe-Org.

the class MCRIIIFPresentationResource method getRange.

@GET
@Produces(MCRIIIFMediaType.APPLICATION_LD_JSON)
@Path("{" + IDENTIFIER_PARAM + "}/range/{" + NAME_PARAM + "}")
public Response getRange(@PathParam(IMPL_PARAM) String impl, @PathParam(IDENTIFIER_PARAM) String identifier, @PathParam(NAME_PARAM) String name) {
    MCRIIIFPresentationManifestQuickAccess quickAccess = getManifestQuickAccess(impl, identifier);
    String rangeAsJSON = getGson().toJson(quickAccess.getRange(name));
    return addHeaders(Response.ok()).entity(rangeAsJSON).build();
}
Also used : MCRIIIFPresentationManifestQuickAccess(org.mycore.iiif.presentation.MCRIIIFPresentationManifestQuickAccess) Path(javax.ws.rs.Path) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Aggregations

MCRIIIFPresentationManifestQuickAccess (org.mycore.iiif.presentation.MCRIIIFPresentationManifestQuickAccess)6 GET (javax.ws.rs.GET)5 Path (javax.ws.rs.Path)5 Produces (javax.ws.rs.Produces)5 Date (java.util.Date)1 MCRIIIFManifest (org.mycore.iiif.presentation.model.basic.MCRIIIFManifest)1