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, log

    Fields inherited from interface org.apache.struts.upload.MultipartRequestHandler

    ATTRIBUTE_MAX_LENGTH_EXCEEDED
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Deprecated.
     
    long
    getSizeMax(org.apache.struts.config.ModuleConfig mc)
    Deprecated.
    Returns the maximum allowable size, in bytes, of an uploaded file.
    Deprecated.
     
    void
    Deprecated.
    Sets the max size string to the item in the list that represents the largest size.
    void
    setSizeMax(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getSizeMax in class org.apache.struts.upload.CommonsMultipartRequestHandler
      Parameters:
      mc - The current module's configuration.
      Returns:
      The maximum allowable file size, in bytes.
    • getSizeMaxString

      public String getSizeMaxString()
      Deprecated.
    • setSizeMax

      public void setSizeMax(String sizeString)
      Deprecated.
    • setMaxUploadSizeToMaxOfList

      public void setMaxUploadSizeToMaxOfList(List<String> sizes)
      Deprecated.
      Sets the max size string to the item in the list that represents the largest size.
    • calculateMaxUploadSizeToMaxOfList

      public long calculateMaxUploadSizeToMaxOfList(List<String> sizes)
      Deprecated.