public class TemporaryDownloadService extends java.lang.Object implements WGAAwareService
Constructor and Description |
---|
TemporaryDownloadService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addDownload(java.io.File file)
Adds a file as temporary download for the current user session
|
java.lang.String |
getDownloadURL(java.lang.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 java.lang.String addDownload(java.io.File file) throws de.innovationgate.webgate.api.WGException
file
- The filede.innovationgate.webgate.api.WGException
public java.lang.String getDownloadURL(java.lang.String name) throws de.innovationgate.webgate.api.WGException
name
- The name of the download, as returned by addDownload(File)
de.innovationgate.webgate.api.WGException