public class DelegatorDownloadResourceManager extends java.lang.Object implements DownloadResourceManager
Constructor and Description |
---|
DelegatorDownloadResourceManager() |
Modifier and Type | Method and Description |
---|---|
DownloadResourceReader |
getResourceReader(java.lang.String userName,
java.lang.String resourcePath,
java.util.Map parameters)
Returns a
DownloadResourceReader for a downloadable resource. |
boolean |
matches(java.lang.String resourcePath)
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the
given resourcePath.
|
void |
setDownloadResourceManagers(java.util.List downloadResourceManagers) |
public boolean matches(java.lang.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(java.lang.String userName, java.lang.String resourcePath, java.util.Map parameters) throws DownloadResourceNotFoundException, UnauthorizedDownloadResourceException
DownloadResourceManager
DownloadResourceReader
for a downloadable resource. Typically used by HTML/PDF export and
resource content downloads.
Use this method only if DownloadResourceManager.matches(String)
returns true.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 resourceDownloadResourceNotFoundException
- if the downloadable resource associated with the resourcePath cannot be
foundUnauthorizedDownloadResourceException
- if the user requesting the downloadable resource does not have the
permissions to get itpublic void setDownloadResourceManagers(java.util.List downloadResourceManagers)
Copyright © 2003-2014 Atlassian. All Rights Reserved.