You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sv...@apache.org on 2004/12/11 22:41:33 UTC
cvs commit: incubator-myfaces/src/components/org/apache/myfaces/component/html/util MultipartRequestWrapper.java
svieujot 2004/12/11 13:41:33
Modified: src/components/org/apache/myfaces/component/html/util
MultipartRequestWrapper.java
Log:
Add method to get the FileItems.
Revision Changes Path
1.2 +16 -2 incubator-myfaces/src/components/org/apache/myfaces/component/html/util/MultipartRequestWrapper.java
Index: MultipartRequestWrapper.java
===================================================================
RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/component/html/util/MultipartRequestWrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MultipartRequestWrapper.java 1 Dec 2004 16:32:03 -0000 1.1
+++ MultipartRequestWrapper.java 11 Dec 2004 21:41:33 -0000 1.2
@@ -28,6 +28,9 @@
* @author Sylvain Vieujot (latest modification by $Author$)
* @version $Revision$ $Date$
* $Log$
+ * Revision 1.2 2004/12/11 21:41:33 svieujot
+ * Add method to get the FileItems.
+ *
* Revision 1.1 2004/12/01 16:32:03 svieujot
* Convert the Multipart filter in an ExtensionsFilter that provides an additional facility to include resources in a page.
* Tested only with javascript resources right now, but should work fine with images too.
@@ -195,5 +198,13 @@
if( fileItems == null ) parseRequest();
return (FileItem) fileItems.get( fieldName );
+ }
+
+ /**
+ * Not used internaly by MyFaces, but provides a way to handle the uploaded files
+ * out of MyFaces.
+ */
+ public Map getFileItems(){
+ return fileItems;
}
}