public class MediaApiURLHelper extends Object
| Constructor and Description |
|---|
MediaApiURLHelper(MediaApiClientIdentitySupplier identitySupplier,
FileStoreConfig config) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getDownloadUrl(String fileId,
String fileName)
Construct a signed direct download URL for the given fileId.
|
URI |
getDownloadUrl(String fileId,
String fileName,
Map<String,String> extraParams)
Construct a signed direct download URL for the given fileId.
|
public MediaApiURLHelper(MediaApiClientIdentitySupplier identitySupplier, FileStoreConfig config)
public URI getDownloadUrl(String fileId, String fileName, Map<String,String> extraParams)
fileId - The Media API ID of the file.fileName - The name of fileextraParams - list of extra query params to put to FileStore urlpublic URI getDownloadUrl(String fileId, String fileName)
fileId - The Media API ID of the file.fileName - The name of fileCopyright © 2003–2016 Atlassian. All rights reserved.