1 package org.andromda.cartridges.jsf.portlet.myfaces.tomahawk.support; 2 3 import java.util.Map; 4 import org.apache.commons.fileupload.FileItem; 5 6 /** 7 * This interface handles the multipart request for inputFileUpload components. 8 * 9 * @author <a href="mailto:shinsuke@yahoo.co.jp">Shinsuke Sugaya</a> 10 */ 11 public interface MultipartRequest 12 { 13 // Hook for the t:inputFileUpload tag. 14 /** 15 * @param fieldName 16 * @return fileItem 17 */ 18 public abstract FileItem getFileItem(String fieldName); 19 20 /** 21 * Not used internally by MyFaces, but provides a way to handle the uploaded 22 * files out of MyFaces. 23 * @return fileItems 24 */ 25 public abstract Map getFileItems(); 26 }