public class Upload extends ProcessorModule
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Upload.FileInfo |
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunctionPARAM_PAGEINFO, PARAMS_PAGEINFOconfigurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIMEdescription, guiName, namefunctions, getFunctions| Constructor and Description |
|---|
Upload() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFile(String filename)
deletes an uploaded file.
|
byte[] |
getFile(String filename)
gets the bytearray of an uploaded file.
|
void |
init()
Initializes the module.
|
boolean |
process(scanpage sp,
Hashtable cmds,
Hashtable vars)
handle the uploaded bytestream.
|
getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, unloadaddInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModulesgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setNameaddFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstancepublic void init()
ProcessorModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.init in class ProcessorModulepublic boolean process(scanpage sp, Hashtable cmds, Hashtable vars)
public void deleteFile(String filename)
filename - the name of the file, e.g. mem://filenamepublic byte[] getFile(String filename)
filename - the name of the file, e.g. mem://filenameMMBase 1.9-SNAPSHOT - ${javadoctimestamp}