Package io.goobi.viewer.api.rest.model
Class MediaDeliveryService
java.lang.Object
io.goobi.viewer.api.rest.model.MediaDeliveryService
MediaDeliveryService class.
- Author:
- Florian Alpers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
matchesRangeHeaderPattern
(String range) void
processRequest
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String filePath, String mimeType) Process the actual request.
-
Constructor Details
-
MediaDeliveryService
public MediaDeliveryService()
-
-
Method Details
-
processRequest
public void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String filePath, String mimeType) throws IOException Process the actual request.- Parameters:
request
- The request to be processed.response
- The response to be created.filePath
- aString
object.mimeType
- aString
object.- Throws:
IOException
- if any.
-
matchesRangeHeaderPattern
- Parameters:
range
-- Returns:
- true if range matches pattern; false otherwise
-