1 18 19 package org.apache.struts.upload; 20 21 import java.util.Hashtable ; 22 import javax.servlet.ServletException ; 23 import javax.servlet.http.HttpServletRequest ; 24 import org.apache.struts.action.ActionServlet; 25 import org.apache.struts.action.ActionMapping; 26 27 33 public interface MultipartRequestHandler 34 { 35 41 public static final String ATTRIBUTE_MAX_LENGTH_EXCEEDED = "org.apache.struts.upload.MaxLengthExceeded"; 42 43 47 public void setServlet(ActionServlet servlet); 48 49 53 public void setMapping(ActionMapping mapping); 54 55 58 public ActionServlet getServlet(); 59 60 63 public ActionMapping getMapping(); 64 65 72 public void handleRequest(HttpServletRequest request) 73 throws ServletException ; 74 75 82 public Hashtable getTextElements(); 83 84 91 public Hashtable getFileElements(); 92 93 98 public Hashtable getAllElements(); 99 100 111 public void rollback(); 112 113 119 public void finish(); 120 121 } 122 123 | Popular Tags |