Class IIIFPresentationApiController
- java.lang.Object
-
- de.digitalcollections.iiif.hymir.presentation.frontend.IIIFPresentationApiController
-
@Controller @RequestMapping("${custom.iiif.presentation.urlPrefix:/presentation/v2}") public class IIIFPresentationApiController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomResponseHeaderscustomResponseHeadersstatic StringVERSION
-
Constructor Summary
Constructors Constructor Description IIIFPresentationApiController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckManifest(String identifier, javax.servlet.http.HttpServletResponse resp)de.digitalcollections.iiif.model.sharedcanvas.AnnotationListgetAnnotationList(String identifier, String name, String canvasId, javax.servlet.http.HttpServletResponse resp)de.digitalcollections.iiif.model.sharedcanvas.CanvasgetCanvas(String manifestId, String canvasId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)de.digitalcollections.iiif.model.sharedcanvas.CollectiongetCollection(String identifier, org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse resp)de.digitalcollections.iiif.model.sharedcanvas.ManifestgetManifest(String identifier, org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse resp)de.digitalcollections.iiif.model.sharedcanvas.RangegetRange(String manifestId, String rangeId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)de.digitalcollections.iiif.model.sharedcanvas.SequencegetSequence(String manifestId, String sequenceId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
-
-
Field Detail
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
customResponseHeaders
@Autowired protected CustomResponseHeaders customResponseHeaders
-
-
Method Detail
-
getManifest
@RequestMapping(value={"{identifier}/manifest","{identifier}"}, method=GET, produces="application/json") @ResponseBody public de.digitalcollections.iiif.model.sharedcanvas.Manifest getManifest(@PathVariable String identifier, org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
checkManifest
@RequestMapping(value={"{identifier}/manifest","{identifier}"}, method=HEAD) public void checkManifest(@PathVariable String identifier, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
getCanvas
@RequestMapping(value="{manifestId}/canvas/{canvasId}", method=GET) @ResponseBody public de.digitalcollections.iiif.model.sharedcanvas.Canvas getCanvas(@PathVariable String manifestId, @PathVariable String canvasId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getRange
@RequestMapping(value="{manifestId}/range/{rangeId}", method=GET) @ResponseBody public de.digitalcollections.iiif.model.sharedcanvas.Range getRange(@PathVariable String manifestId, @PathVariable String rangeId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getSequence
@RequestMapping(value="{manifestId}/sequence/{sequenceId}", method=GET) @ResponseBody public de.digitalcollections.iiif.model.sharedcanvas.Sequence getSequence(@PathVariable String manifestId, @PathVariable String sequenceId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getCollection
@RequestMapping(value="collection/{identifier}", method={GET,HEAD}, produces="application/json") @ResponseBody public de.digitalcollections.iiif.model.sharedcanvas.Collection getCollection(@PathVariable String identifier, org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getAnnotationList
@GetMapping(value="{identifier}/list/{name}/{canvasId}", produces="application/json") @ResponseBody public de.digitalcollections.iiif.model.sharedcanvas.AnnotationList getAnnotationList(@PathVariable String identifier, @PathVariable String name, @PathVariable String canvasId, javax.servlet.http.HttpServletResponse resp) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
-