protected RangeHeaderResult |
AbstractDownloadStrategy.processRangeHeader(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
long fileLength) |
Processes the Range and If-Range headers from the HTTP request to determine the byte range to be served
This method validates the range, calculates the start and content length, and sets the appropriate response headers
If the range is invalid or not satisfiable, it sets the response status to 416 (Range Not Satisfiable)
If an If-Range header is present, it checks whether the file has changed since the specified date or ETag
If the file has changed, it serves the entire file instead of the range
|