org.mmbase.module
Class Upload

java.lang.Object
  |
  +--org.mmbase.module.Module
        |
        +--org.mmbase.module.ProcessorModule
              |
              +--org.mmbase.module.Upload
All Implemented Interfaces:
ProcessorInterface

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


Constructor Summary
Upload()
           
 
Method Summary
 void deleteFile(java.lang.String filename)
          deletes an uploaded file.
 byte[] getFile(java.lang.String filename)
          gets the bytearray of an uploaded file.
 void init()
          Initializes the module.
 boolean process(scanpage sp, java.util.Hashtable cmds, java.util.Hashtable vars)
          handle the uploaded bytestream.
 
Methods inherited from class org.mmbase.module.ProcessorModule
cacheCheck, getList, getListBuilder, getNodeList, onload, reload, replace, replace, shutdown, unload
 
Methods inherited from class org.mmbase.module.Module
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, setInitParameter, setMaintainer, setName, setVersion, startModule, startModules, state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Upload

public Upload()
Method Detail

init

public void init()
Description copied from class: Module
Initializes the module. Init can be overridden to read the environment variables it needs.
This method is called by Module.startModule(), which makes sure it is not called more than once. You should not call init() directly, call startModule() instead.
Overrides:
init in class ProcessorModule

process

public boolean process(scanpage sp,
                       java.util.Hashtable cmds,
                       java.util.Hashtable vars)
handle the uploaded bytestream.
Overrides:
process in class ProcessorModule

deleteFile

public void deleteFile(java.lang.String filename)
deletes an uploaded file.
Parameters:
filename - the name of the file, e.g. mem://filename

getFile

public byte[] getFile(java.lang.String filename)
gets the bytearray of an uploaded file.
Parameters:
filename - the name of the file, e.g. mem://filename


MMBase 2001