@Controller
@RequestMapping(value="${custom.iiif.image.urlPrefix:/image/v2/}")
public class IIIFImageApiController
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CustomResponseHeaders |
customResponseHeaders |
static String |
VERSION |
| Constructor and Description |
|---|
IIIFImageApiController(ImageService imageService,
de.digitalcollections.iiif.model.jackson.IiifObjectMapper objectMapper) |
| Modifier and Type | Method and 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) |
String |
getInfoRedirect(String identifier,
javax.servlet.http.HttpServletResponse response) |
public static final String VERSION
@Autowired protected CustomResponseHeaders customResponseHeaders
@Autowired public IIIFImageApiController(ImageService imageService, de.digitalcollections.iiif.model.jackson.IiifObjectMapper objectMapper)
@RequestMapping(value="{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
UnsupportedFormatExceptionUnsupportedOperationExceptionIOExceptionInvalidParametersExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException@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
ExceptionCopyright © 2019. All rights reserved.