org.mmbase.module
Class Upload

Package class diagram package Upload
java.lang.Object
  extended by org.mmbase.util.functions.FunctionProvider
      extended by org.mmbase.util.functions.DescribedFunctionProvider
          extended by org.mmbase.module.Module
              extended by org.mmbase.module.ProcessorModule
                  extended by 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


Nested Class Summary
(package private)  class Upload.FileInfo
           
 
Nested classes/interfaces inherited from class org.mmbase.module.ProcessorModule
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction
 
Field Summary
 
Fields inherited from class org.mmbase.module.ProcessorModule
PARAM_PAGEINFO, PARAMS_PAGEINFO
 
Fields inherited from class org.mmbase.module.Module
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME
 
Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider
description, guiName, name
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
Upload()
           
 
Method Summary
 void deleteFile(String filename)
          deletes an uploaded file.
 byte[] getFile(String filename)
          gets the bytearray of an uploaded file.
 void init()
           
 boolean process(scanpage sp, Hashtable cmds, Hashtable vars)
          handle the uploaded bytestream.
 
Methods inherited from class org.mmbase.module.ProcessorModule
, getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, unload
 
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 org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
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()
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