Class RecordsImageResource
java.lang.Object
io.goobi.viewer.api.rest.v2.records.media.RecordsImageResource
- Author:
- florian
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
-
Constructor Details
-
RecordsImageResource
- Parameters:
pi
-
-
-
Method Details
-
getImageBase
@GET @Path("/representative") @Produces({"application/json","application/ld+json"}) public javax.ws.rs.core.Response getImageBase() throws URISyntaxException- Throws:
URISyntaxException
-
getImageInfo
@GET @Path("/representative/info.json") @Produces({"application/json","application/ld+json"}) public String getImageInfo() throws PresentationException, IndexUnreachableException, javax.servlet.ServletException, IOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException- Throws:
PresentationException
IndexUnreachableException
javax.servlet.ServletException
IOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-
getImage
@GET @Path("/representative/{region}/{size}/{rotation}/{quality}.{format}") @Produces({"image/jpg","image/png","image/tif"}) public String getImage(@PathParam("region") String region, @PathParam("size") String size, @PathParam("rotation") String rotation, @PathParam("quality") String quality, @PathParam("format") String format) throws PresentationException, IndexUnreachableException, javax.servlet.ServletException, IOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
PresentationException
IndexUnreachableException
javax.servlet.ServletException
IOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-