org.mmbase.datatypes.handlers.html
Class MultiPart.MMultipartRequest

java.lang.Object
  extended by org.mmbase.datatypes.handlers.html.MultiPart.MMultipartRequest
Enclosing class:
MultiPart

public static class MultiPart.MMultipartRequest
extends Object


Constructor Summary
MultiPart.MMultipartRequest(HttpServletRequest req, String c)
           
 
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.
 FileItem getFileItem(String param)
          Deprecated.  
 SerializableInputStream getInputStream(String param)
           
 Collection<String> 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
 

Constructor Detail

MultiPart.MMultipartRequest

MultiPart.MMultipartRequest(HttpServletRequest req,
                            String c)
Method Detail

getInputStream

public SerializableInputStream getInputStream(String param)

getFileItem

public FileItem getFileItem(String param)
Deprecated. 


encodeBytesAsString

protected String encodeBytesAsString(byte[] data)
                              throws UnsupportedEncodingException
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:
UnsupportedEncodingException

isFile

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

getParameterValues

public Object getParameterValues(String param)
                          throws UnsupportedEncodingException
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:
UnsupportedEncodingException

getParameterNames

public Collection<String> getParameterNames()


MMBase 2.0-SNAPSHOT - null