Class RecordFileResource
java.lang.Object
io.goobi.viewer.api.rest.v1.records.RecordFileResource
- Author:
- florian
-
Constructor Summary
ConstructorDescriptionRecordFileResource
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getDownloadedResource
(String taskId, String path) javax.ws.rs.core.Response
getMediaFile
(String filename) getPlaintext
(String filename) javax.ws.rs.core.Response
getSourceFile
(String filename)
-
Constructor Details
-
RecordFileResource
public RecordFileResource(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @PathParam("pi") String pi) - Parameters:
request
- the http requestresponse
- the http responsepi
- the requested indentifier
-
-
Method Details
-
getAlto
@GET @Path("/alto/{filename}") @Produces("text/xml") public String getAlto(@PathParam("filename") String filename) throws PresentationException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException, de.unigoettingen.sub.commons.contentlib.exceptions.ServiceNotAllowedException - Throws:
PresentationException
IndexUnreachableException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
de.unigoettingen.sub.commons.contentlib.exceptions.ServiceNotAllowedException
-
getPlaintext
@GET @Path("/plaintext/{filename}") @Produces("text/plain") public String getPlaintext(@PathParam("filename") String filename) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException, PresentationException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ServiceNotAllowedException - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
PresentationException
IndexUnreachableException
de.unigoettingen.sub.commons.contentlib.exceptions.ServiceNotAllowedException
-
getTEI
@GET @Path("/tei/{filename}") @Produces("text/xml") public String getTEI(@PathParam("filename") String filename) throws PresentationException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Throws:
PresentationException
IndexUnreachableException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
getSourceFile
@GET @Path("/source/{filename}") public javax.ws.rs.core.Response getSourceFile(@PathParam("filename") String filename) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, PresentationException, IndexUnreachableException, DAOException - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
PresentationException
IndexUnreachableException
DAOException
-
getMediaFile
@GET @Path("/media/{filename}") public javax.ws.rs.core.Response getMediaFile(@PathParam("filename") String filename) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, PresentationException, IndexUnreachableException, DAOException - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
PresentationException
IndexUnreachableException
DAOException
-
getCMDI
@GET @Path("/cmdi/{filename}") @Produces("application/octet-stream") public String getCMDI(@PathParam("filename") String filename, @QueryParam("lang") String lang) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, PresentationException, IndexUnreachableException, IOException - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
PresentationException
IndexUnreachableException
IOException
-
getDownloadedResource
@GET @Path("/resources/{taskId}/{path: .+}") public javax.ws.rs.core.Response getDownloadedResource(@PathParam("taskId") String taskId, @PathParam("path") String path) throws PresentationException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
PresentationException
IndexUnreachableException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-