Class ViewerSectionPDFResource

java.lang.Object
de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource
de.unigoettingen.sub.commons.contentlib.servlet.rest.MetsPdfResource
io.goobi.viewer.api.rest.v1.records.media.ViewerSectionPDFResource

@Path("/records/{pi}/sections/{divId}") public class ViewerSectionPDFResource extends de.unigoettingen.sub.commons.contentlib.servlet.rest.MetsPdfResource
Author:
florian
  • Nested Class Summary

    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.MetsPdfResource

    context, request, response

    Fields inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource

    config, MEDIA_TYPE_APPLICATION_JSONLD, REQUEST_TYPE_IMAGE, REQUEST_TYPE_METSPDF, REQUEST_TYPE_PDF, requestId, requestMap
  • Constructor Summary

    Constructors
    Constructor
    Description
    ViewerSectionPDFResource(javax.ws.rs.container.ContainerRequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AbstractApiUrlManager urls, String pi, String divId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.unigoettingen.sub.commons.contentlib.servlet.model.PdfInformation
     
    javax.ws.rs.core.StreamingOutput
     

    Methods inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.MetsPdfResource

    getImageURI, getInfo, getInfoAsJson, getPdf, getResourceURI, getURIPrefix, redirectToCanonicalImageInfo, redirectToCanonicalImageInfo2

    Methods inherited from class de.unigoettingen.sub.commons.contentlib.servlet.rest.ContentServerResource

    checkMemoryOverflow, checkRequestOverflow, finishRequest, getNumCurrentFooterRequests, getNumCurrentImageRequests, getNumCurrentMetsPdfRequests, getNumCurrentRequests, getNumCurrentSinglePdfRequests, getRequestId, getStatus, remainingMemory, startRequest

    Methods inherited from class java.lang.Object

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

    • ViewerSectionPDFResource

      public ViewerSectionPDFResource(@Context javax.ws.rs.container.ContainerRequestContext context, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @Context AbstractApiUrlManager urls, @PathParam("pi") String pi, @PathParam("divId") String divId) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
      Parameters:
      context -
      request -
      response -
      urls -
      pi -
      divId -
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
  • Method Details

    • getPdf

      @GET @Path("/pdf") @Produces("application/pdf") public javax.ws.rs.core.StreamingOutput getPdf() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
      Overrides:
      getPdf in class de.unigoettingen.sub.commons.contentlib.servlet.rest.MetsPdfResource
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
    • getInfoAsJson

      @GET @Path("/pdf/info.json") @Produces({"application/json","application/ld+json"}) public de.unigoettingen.sub.commons.contentlib.servlet.model.PdfInformation getInfoAsJson() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
      Overrides:
      getInfoAsJson in class de.unigoettingen.sub.commons.contentlib.servlet.rest.MetsPdfResource
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException