org.mmbase.bridge.jsp.taglib.util
Class MultiPart.MMultipartRequest

java.lang.Object
  extended byorg.mmbase.bridge.jsp.taglib.util.MultiPart.MMultipartRequest
Enclosing class:
MultiPart

public static class MultiPart.MMultipartRequest
extends Object


Method Summary
protected  String encodeBytesAsString(byte[] data)
          Method to retrieve the bytes of an uploaded file as a string using eitehr the encoding specified in the file or the default encoding.
 byte[] getBytes(String param)
          Method to retrieve the bytes of an uploaded file.
 org.apache.commons.fileupload.FileItem getFileItem(String param)
           
 Iterator getParameterNames()
           
 Object getParameterValues(String param)
          Method to retrieve the parameter.
 boolean isFile(String param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBytes

public byte[] getBytes(String param)
                throws JspTagException
Method to retrieve the bytes of an uploaded file.

Parameters:
param - The name of the parameter
Returns:
null if parameter not found, otherwise the bytes from the parameter
Throws:
JspTagException

getFileItem

public org.apache.commons.fileupload.FileItem getFileItem(String param)
                                                   throws JspTagException
Throws:
JspTagException

encodeBytesAsString

protected String encodeBytesAsString(byte[] data)
                              throws JspTagException
Method to retrieve the bytes of an uploaded file as a string using eitehr the encoding specified in the file or the default encoding.

Returns:
null if parameter not found, otherwise the bytes from the parameter
Throws:
JspTagException

isFile

public boolean isFile(String param)
Since:
MMBase-1.8

getParameterValues

public Object getParameterValues(String param)
                          throws JspTagException
Method to retrieve the parameter.

Parameters:
param - The name of the parameter
Returns:
null if parameter not found, when a single occurence of the parameter the result as a String using the encoding specified. When if was a MultiParameter parameter, it will return a List of String's
Throws:
JspTagException

getParameterNames

public Iterator getParameterNames()


MMBase build 1.8.1.20060716