Class KualiMultipartRequestHandler
java.lang.Object
org.apache.struts.upload.CommonsMultipartRequestHandler
org.kuali.rice.kns.web.struts.action.KualiMultipartRequestHandler
- All Implemented Interfaces:
org.apache.struts.upload.MultipartRequestHandler
@Deprecated
public class KualiMultipartRequestHandler
extends org.apache.struts.upload.CommonsMultipartRequestHandler
Deprecated.
KNS Struts deprecated, use KRAD and the Spring MVC framework.
Subclass of the MultipartRequestHandler used by Struts. This one allows the maximum upload size to be set
by the application rather than by an init parameter.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.apache.struts.upload.CommonsMultipartRequestHandler
DEFAULT_SIZE_MAX, DEFAULT_SIZE_THRESHOLD, logFields inherited from interface org.apache.struts.upload.MultipartRequestHandler
ATTRIBUTE_MAX_LENGTH_EXCEEDED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.longgetSizeMax(org.apache.struts.config.ModuleConfig mc) Deprecated.Returns the maximum allowable size, in bytes, of an uploaded file.Deprecated.voidsetMaxUploadSizeToMaxOfList(List<String> sizes) Deprecated.Sets the max size string to the item in the list that represents the largest size.voidsetSizeMax(String sizeString) Deprecated.Methods inherited from class org.apache.struts.upload.CommonsMultipartRequestHandler
addFileParameter, addTextParameter, convertSizeToBytes, finish, getAllElements, getFileElements, getMapping, getRepositoryPath, getServlet, getSizeThreshold, getTextElements, handleRequest, rollback, setMapping, setServlet
-
Constructor Details
-
KualiMultipartRequestHandler
public KualiMultipartRequestHandler()Deprecated.
-
-
Method Details
-
getSizeMax
public long getSizeMax(org.apache.struts.config.ModuleConfig mc) Deprecated.Returns the maximum allowable size, in bytes, of an uploaded file. The value is obtained from the current module's controller configuration.- Overrides:
getSizeMaxin classorg.apache.struts.upload.CommonsMultipartRequestHandler- Parameters:
mc- The current module's configuration.- Returns:
- The maximum allowable file size, in bytes.
-
getSizeMaxString
Deprecated. -
setSizeMax
Deprecated. -
setMaxUploadSizeToMaxOfList
Deprecated.Sets the max size string to the item in the list that represents the largest size. -
calculateMaxUploadSizeToMaxOfList
Deprecated.
-