Class ViewerSectionPDFResource
java.lang.Object
io.goobi.viewer.api.rest.v1.records.media.ViewerSectionPDFResource
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorsConstructorDescriptionViewerSectionPDFResource(ContainerRequestContext context, HttpServletRequest request, HttpServletResponse response, AbstractApiUrlManager urls, String pi, String divId, Boolean usePdfSource) -
Method Summary
Modifier and TypeMethodDescriptionde.unigoettingen.sub.commons.contentlib.servlet.model.PdfInformationgetPdf()
-
Constructor Details
-
ViewerSectionPDFResource
public ViewerSectionPDFResource(@Context ContainerRequestContext context, @Context HttpServletRequest request, @Context HttpServletResponse response, @Context AbstractApiUrlManager urls, @PathParam("pi") String pi, @PathParam("divId") String divId, @QueryParam("usePdfSource") Boolean usePdfSource) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Parameters:
context- JAX-RS container request contextrequest- incoming HTTP servlet requestresponse- outgoing HTTP servlet responseurls- API URL manager for building resource URIspi- persistent identifier of the recorddivId- logical div ID of the METS sectionusePdfSource- allow using single page files from pdf folder to render pdf- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
-
Method Details
-
getPdf
-
getInfoAsJson
@GET @Path("/pdf/info.json") @Produces("application/json") public de.unigoettingen.sub.commons.contentlib.servlet.model.PdfInformation getInfoAsJson() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-