01: package com.icesoft.faces.component;
02:
03: import com.icesoft.faces.context.BridgeFacesContext;
04: import org.apache.commons.fileupload.FileItemStream;
05:
06: import javax.servlet.ServletContext;
07: import java.io.IOException;
08: import java.io.Writer;
09:
10: public interface FileUploadComponent {
11:
12: void upload(FileItemStream fileItemStream, String uploadDirectory,
13: boolean uploadDirectoryAbsolute, long maxSize,
14: BridgeFacesContext bfg, ServletContext servletContext,
15: String sessionId) throws IOException;
16:
17: void setProgress(int percentage);
18:
19: void renderIFrame(Writer writer, BridgeFacesContext context)
20: throws IOException;
21: }
|