Class ExternalImageResource
java.lang.Object
de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource
de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
io.goobi.viewer.api.rest.v1.media.ExternalImageResource
@Path("/images/external/{filename}")
public class ExternalImageResource
extends de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
- Author:
- florian Used to call ContentServer with external image resource URLs
-
Nested Class Summary
Nested classes/interfaces inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource.ImageStreamingOutput, de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource.PdfStreamingOutput
Nested classes/interfaces inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource
de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource.ResourceStatus
-
Field Summary
Fields inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
BACKSLASH_REPLACEMENT, context, IIIF_VERSION, imageURI, PERCENT_REPLACEMENT, QUESTION_MARK_REPLACEMENT, request, REQUEST_ATTRIBUTE_ERROR, resourceURI, response, SLASH_REPLACEMENT
Fields inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource
MEDIA_TYPE_APPLICATION_JSONLD, REQUEST_TYPE_IMAGE, REQUEST_TYPE_METSPDF, REQUEST_TYPE_PDF, requestId, requestMap
-
Constructor Summary
ConstructorDescriptionExternalImageResource
(javax.ws.rs.container.ContainerRequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ApiUrls urls, String imageUrl) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createResourceURI
(javax.servlet.http.HttpServletRequest request, String directory, String filename) javax.ws.rs.core.StreamingOutput
getPdf()
javax.ws.rs.core.Response
Methods inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
addContentHeader, createImageURI, getCache, getCachedDate, getGif, getImage, getImageURI, getInfoAsJson, getInfoAsXml, getPdf, getRequestedWidth, getResourceURI, getURIPrefix, isInCache, redirectToFullImage, redirectToFullImage, setImageURI, setInitializationException, setResourceURI, unescape
Methods inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource
checkMemoryOverflow, checkRequestOverflow, finishRequest, getNumCurrentFooterRequests, getNumCurrentImageRequests, getNumCurrentMetsPdfRequests, getNumCurrentRequests, getNumCurrentSinglePdfRequests, getRequestId, getStatus, remainingMemory, startRequest
-
Constructor Details
-
ExternalImageResource
public ExternalImageResource(@Context javax.ws.rs.container.ContainerRequestContext context, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @Context ApiUrls urls, @PathParam("filename") String imageUrl) - Parameters:
context
-request
-response
-urls
-imageUrl
-
-
-
Method Details
-
getPdf
@GET @Path("/full.pdf") @Produces("application/pdf") public javax.ws.rs.core.StreamingOutput getPdf() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException- Overrides:
getPdf
in classde.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
redirectToCanonicalImageInfo
@GET @Produces({"application/json","application/ld+json"}) public javax.ws.rs.core.Response redirectToCanonicalImageInfo() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException- Overrides:
redirectToCanonicalImageInfo
in classde.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
createResourceURI
public void createResourceURI(javax.servlet.http.HttpServletRequest request, String directory, String filename) throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Overrides:
createResourceURI
in classde.unigoettingen.sub.commons.contentlib.servlet.rest.ImageResource
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-