org.mmbase.module
Class Upload
java.lang.Object
org.mmbase.util.functions.FunctionProvider
org.mmbase.util.functions.DescribedFunctionProvider
org.mmbase.module.Module
org.mmbase.module.ProcessorModule
org.mmbase.module.Upload
- All Implemented Interfaces:
- Descriptor
public class Upload
- extends ProcessorModule
the Upload module stores files that are uploaded.
At this time files van only be stored in memory.
nog wat uitleg over hoe je de .shtml maakt
| Methods inherited from class org.mmbase.module.Module |
addInitParameters, checkModules, 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, startModules |
| Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Upload
public Upload()
init
public void init()
- Overrides:
init in class ProcessorModule
process
public boolean process(scanpage sp,
Hashtable cmds,
Hashtable vars)
- handle the uploaded bytestream.
deleteFile
public void deleteFile(String filename)
- deletes an uploaded file.
- Parameters:
filename - the name of the file, e.g. mem://filename
getFile
public byte[] getFile(String filename)
- gets the bytearray of an uploaded file.
- Parameters:
filename - the name of the file, e.g. mem://filename
MMBase Scan 2.0-SNAPSHOT - 2013-03-30T06:50