|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.upload.CommonsMultipartRequestHandler
org.kuali.rice.kns.web.struts.action.KualiMultipartRequestHandler
public class KualiMultipartRequestHandler
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.
| 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 | |
|---|---|
KualiMultipartRequestHandler()
|
|
| Method Summary | |
|---|---|
long |
calculateMaxUploadSizeToMaxOfList(List<String> sizes)
|
long |
getSizeMax(org.apache.struts.config.ModuleConfig mc)
Returns the maximum allowable size, in bytes, of an uploaded file. |
String |
getSizeMaxString()
|
void |
setMaxUploadSizeToMaxOfList(List<String> sizes)
Sets the max size string to the item in the list that represents the largest size. |
void |
setSizeMax(String sizeString)
|
| 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 Detail |
|---|
public KualiMultipartRequestHandler()
| Method Detail |
|---|
public long getSizeMax(org.apache.struts.config.ModuleConfig mc)
getSizeMax in class org.apache.struts.upload.CommonsMultipartRequestHandlermc - The current module's configuration.
public String getSizeMaxString()
public void setSizeMax(String sizeString)
public void setMaxUploadSizeToMaxOfList(List<String> sizes)
public long calculateMaxUploadSizeToMaxOfList(List<String> sizes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||