de.innovationgate.wgpublisher
public class TemporaryDownloadService extends Object implements WGAAwareService
Constructor and Description |
---|
TemporaryDownloadService() |
Modifier and Type | Method and Description |
---|---|
String |
addDownload(File file)
Adds a file as temporary download for the current user session
|
String |
getDownloadURL(String name)
Returns a download URL for the given download name, taking the current request URL into account.
|
void |
injectWGA(WGA wga)
Callback method by which the
WGA object is injected |
public void injectWGA(WGA wga)
WGAAwareService
WGA
object is injectedinjectWGA
in interface WGAAwareService
wga
- The object used to instantiate the service via WGA.service(Class)
public String addDownload(File file) throws de.innovationgate.webgate.api.WGException
file
- The filede.innovationgate.webgate.api.WGException
public String getDownloadURL(String name) throws de.innovationgate.webgate.api.WGException
name
- The name of the download, as returned by addDownload(File)
de.innovationgate.webgate.api.WGException