Class IIIFImageApiController
- java.lang.Object
-
- de.digitalcollections.iiif.hymir.image.frontend.IIIFImageApiController
-
@Controller @RequestMapping("${custom.iiif.image.urlPrefix:/image/v2/}") public class IIIFImageApiController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomResponseHeaderscustomResponseHeadersstatic StringVERSION
-
Constructor Summary
Constructors Constructor Description IIIFImageApiController(ImageService imageService, de.digitalcollections.iiif.model.jackson.IiifObjectMapper objectMapper, CustomResponseHeaders customResponseHeaders, de.digitalcollections.commons.springboot.metrics.MetricsService metricsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<byte[]>getImageRepresentation(String identifier, String region, String size, String rotation, String quality, String format, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.context.request.WebRequest webRequest)org.springframework.http.ResponseEntity<String>getInfo(String identifier, javax.servlet.http.HttpServletRequest req, org.springframework.web.context.request.WebRequest webRequest)StringgetInfoRedirect(String identifier, javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
customResponseHeaders
protected final CustomResponseHeaders customResponseHeaders
-
-
Constructor Detail
-
IIIFImageApiController
@Autowired public IIIFImageApiController(ImageService imageService, de.digitalcollections.iiif.model.jackson.IiifObjectMapper objectMapper, CustomResponseHeaders customResponseHeaders, de.digitalcollections.commons.springboot.metrics.MetricsService metricsService)
-
-
Method Detail
-
getImageRepresentation
@RequestMapping("{identifier}/{region}/{size}/{rotation}/{quality}.{format}") public org.springframework.http.ResponseEntity<byte[]> getImageRepresentation(@PathVariable String identifier, @PathVariable String region, @PathVariable String size, @PathVariable String rotation, @PathVariable String quality, @PathVariable String format, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.context.request.WebRequest webRequest) throws UnsupportedFormatException, UnsupportedOperationException, IOException, InvalidParametersException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- Throws:
UnsupportedFormatExceptionUnsupportedOperationExceptionIOExceptionInvalidParametersExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
getInfo
@RequestMapping(value="{identifier}/info.json", method={GET,HEAD}) public org.springframework.http.ResponseEntity<String> getInfo(@PathVariable String identifier, javax.servlet.http.HttpServletRequest req, org.springframework.web.context.request.WebRequest webRequest) throws Exception- Throws:
Exception
-
-