Package io.goobi.viewer.api.rest.model
Class MediaResourceHelper
java.lang.Object
io.goobi.viewer.api.rest.model.MediaResourceHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRedirectUrl
(String pi, String filename) setContentHeaders
(javax.servlet.http.HttpServletResponse servletResponse, String filename, Path path) boolean
shouldRedirect
(String filename)
-
Constructor Details
-
MediaResourceHelper
-
-
Method Details
-
shouldRedirect
- Throws:
IOException
-
getRedirectUrl
- Throws:
IOException
-
setContentHeaders
public String setContentHeaders(javax.servlet.http.HttpServletResponse servletResponse, String filename, Path path) throws IOException - Throws:
IOException
-