public class WebImagesDownloadResourceManager extends Object implements DownloadResourceManager
Constructor and Description |
---|
WebImagesDownloadResourceManager(ResourceAccessor resourceAccessor,
ContextPathHolder contextPathHolder) |
Modifier and Type | Method and Description |
---|---|
DownloadResourceReader |
getResourceReader(String userName,
String resourcePath,
Map parameters)
Returns a
WebImagesDownloadResourceReader for retrieving web application images. |
boolean |
matches(String resourcePath)
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the
given resourcePath.
|
public WebImagesDownloadResourceManager(ResourceAccessor resourceAccessor, ContextPathHolder contextPathHolder)
public boolean matches(String resourcePath)
DownloadResourceManager
matches
in interface DownloadResourceManager
resourcePath
- the relative URL of the resource including the application context path. For example,
"/confluence/download/attachments/12345/temp.png".public DownloadResourceReader getResourceReader(String userName, String resourcePath, Map parameters) throws UnauthorizedDownloadResourceException, DownloadResourceNotFoundException
WebImagesDownloadResourceReader
for retrieving web application images.
Username and parameters are ignored.getResourceReader
in interface DownloadResourceManager
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 resourceUnauthorizedDownloadResourceException
- 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
foundCopyright © 2003–2019 Atlassian. All rights reserved.