Update of /var/cvs/src/org/mmbase/datatypes/handlers/html In directory james.mmbase.org:/tmp/cvs-serv14482
Modified Files: MultiPart.java Log Message: added getFileItem for backwards compatibility See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/handlers/html Index: MultiPart.java =================================================================== RCS file: /var/cvs/src/org/mmbase/datatypes/handlers/html/MultiPart.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- MultiPart.java 28 Apr 2009 16:07:57 -0000 1.4 +++ MultiPart.java 28 Apr 2009 16:19:07 -0000 1.5 @@ -21,7 +21,7 @@ /** * Taglib needs to read Multipart request sometimes. Functionallity is centralized here. * @author Michiel Meeuwissen - * @version $Id: MultiPart.java,v 1.4 2009/04/28 16:07:57 michiel Exp $ + * @version $Id: MultiPart.java,v 1.5 2009/04/28 16:19:07 michiel Exp $ **/ public class MultiPart { @@ -138,6 +138,23 @@ } /** + * @deprecated + */ + public FileItem getFileItem(String param) { + log.debug("Getting outputstream for " + param); + Object value = parametersMap.get("org.mmbase.datatypes.handlers.html.FILEITEM." + param); + if (value instanceof FileItem) { + try { + return (FileItem)value; + } catch (Exception e) { + throw new RuntimeException(e); + } + } else { + return null; + } + } + + /** * Method to retrieve the bytes of an uploaded file as a string using eitehr the encoding specified in the file or * the default encoding. * @return <code>null</code> if parameter not found, otherwise the bytes from the parameter _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs