public final class DownloadFunction extends NodeFunction<String>
Downloader to do the actual work. The media file itself is
saved in a mediasources node and transcoded by the streams application when the download finishes.
Url and information about success or failure of the download are saved as properties
on the mediafragments node.| Modifier and Type | Field and Description |
|---|---|
static Parameter[] |
PARAMETERS |
autoReturnType, name, returnType| Constructor and Description |
|---|
DownloadFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDownloadStatus(Node node) |
String |
getFunctionValue(Node node,
Parameters parameters) |
protected String |
getProperty(Node node,
String key) |
protected void |
setDownloadStatus(Node node,
String status) |
protected void |
setDownloadUrl(Node node,
String link) |
protected void |
setProperty(Node node,
String key,
String value) |
protected Future<String> |
submit(Node node,
Parameters parameters) |
getFunctionNameAndFillArgs, getFunctionValue, getFunctionValue, getFunctionValueForNode, getNode, getNodeParameterDef, getReturnType, newInstance, wrapcompareTo, createParameters, equals, getDescription, getFunctionValueWithList, getName, getParameterDefinition, hashCode, setDescription, setParameterDefinition, setReturnType, toStringpublic static final Parameter[] PARAMETERS
protected Future<String> submit(Node node, Parameters parameters)
public String getFunctionValue(Node node, Parameters parameters)
getFunctionValue in class NodeFunction<String>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}