Class IIIFImageApiController


  • @Controller
    @RequestMapping("${custom.iiif.image.urlPrefix:/image/v2/}")
    public class IIIFImageApiController
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IIIFImageApiController​(ImageService imageService, de.digitalcollections.iiif.model.jackson.IiifObjectMapper objectMapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<byte[]> getImageRepresentation​(java.lang.String identifier, java.lang.String region, java.lang.String size, java.lang.String rotation, java.lang.String quality, java.lang.String format, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.context.request.WebRequest webRequest)  
      org.springframework.http.ResponseEntity<java.lang.String> getInfo​(java.lang.String identifier, javax.servlet.http.HttpServletRequest req, org.springframework.web.context.request.WebRequest webRequest)  
      java.lang.String getInfoRedirect​(java.lang.String identifier, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IIIFImageApiController

        @Autowired
        public IIIFImageApiController​(ImageService imageService,
                                      de.digitalcollections.iiif.model.jackson.IiifObjectMapper objectMapper)
    • Method Detail

      • getImageRepresentation

        @RequestMapping("{identifier}/{region}/{size}/{rotation}/{quality}.{format}")
        public org.springframework.http.ResponseEntity<byte[]> getImageRepresentation​(@PathVariable
                                                                                      java.lang.String identifier,
                                                                                      @PathVariable
                                                                                      java.lang.String region,
                                                                                      @PathVariable
                                                                                      java.lang.String size,
                                                                                      @PathVariable
                                                                                      java.lang.String rotation,
                                                                                      @PathVariable
                                                                                      java.lang.String quality,
                                                                                      @PathVariable
                                                                                      java.lang.String format,
                                                                                      javax.servlet.http.HttpServletRequest request,
                                                                                      javax.servlet.http.HttpServletResponse response,
                                                                                      org.springframework.web.context.request.WebRequest webRequest)
                                                                               throws UnsupportedFormatException,
                                                                                      java.lang.UnsupportedOperationException,
                                                                                      java.io.IOException,
                                                                                      InvalidParametersException,
                                                                                      de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
        Throws:
        UnsupportedFormatException
        java.lang.UnsupportedOperationException
        java.io.IOException
        InvalidParametersException
        de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
      • getInfo

        @RequestMapping(value="{identifier}/info.json",
                        method={GET,HEAD})
        public org.springframework.http.ResponseEntity<java.lang.String> getInfo​(@PathVariable
                                                                                 java.lang.String identifier,
                                                                                 javax.servlet.http.HttpServletRequest req,
                                                                                 org.springframework.web.context.request.WebRequest webRequest)
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getInfoRedirect

        @RequestMapping(value="{identifier}",
                        method={GET,HEAD})
        public java.lang.String getInfoRedirect​(@PathVariable
                                                java.lang.String identifier,
                                                javax.servlet.http.HttpServletResponse response)