public interface PartialDownloadResourceManager extends DownloadResourceManager
Modifier and Type | Method and Description |
---|---|
PartialDownloadResourceReader |
getPartialResourceReader(String userName,
String resourcePath,
Map parameters,
String requestRange)
Returns a
DownloadResourceReader for part of a downloadable resource. |
getResourceReader, matches
PartialDownloadResourceReader getPartialResourceReader(String userName, String resourcePath, Map parameters, String requestRange) throws UnauthorizedDownloadResourceException, DownloadResourceNotFoundException, RangeNotSatisfiableException
DownloadResourceReader
for part of a downloadable resource. Currently being used by attachment downloads
Use this method only if DownloadResourceManager.matches(String)
returns true.userName
- the user who is retrieving the downloadable resource.resourcePath
- the relative URL of the resource including the application context path. For example,
"/confluence/download/attachments/12345/temp.png".parameters
- a map of url paramaters for the resourcerequestRange
- range of the resource as defined in RFC-2616
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1UnauthorizedDownloadResourceException
- if the user requesting the downloadable resource does not have the
permissions to get itDownloadResourceNotFoundException
- if the downloadable resource associated with the resourcePath cannot be
foundRangeNotSatisfiableException
- if the requested range cannot be servedCopyright © 2003–2019 Atlassian. All rights reserved.