|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.weblayer.webcontext.parser.upload.UploadParameters
public class UploadParameters
multipart/form-data类型的HTTP请求参数上传
| 字段摘要 |
|---|
| 从接口 org.tinygroup.weblayer.webcontext.parser.upload.UploadConfiguration 继承的字段 |
|---|
FILE_SIZE_MAX_DEFAULT, SIZE_MAX_DEFAULT, SIZE_THRESHOLD_DEFAULT |
| 构造方法摘要 | |
|---|---|
UploadParameters()
|
|
| 方法摘要 | |
|---|---|
void |
applyDefaultValues()
设置默认值。 |
boolean |
equals(Object obj)
|
String[] |
getFileNameKey()
标准的上传文件请求中,包含这样的内容: Content-Disposition: attachment; filename=xxx.txt
。 |
org.tinygroup.commons.tools.HumanReadableSize |
getFileSizeMax()
取得单个文件允许的最大尺寸,超过此尺寸的文件将被抛弃。 |
String |
getItemStorageBeanName()
|
File |
getRepository()
取得暂存文件的目录。 |
org.tinygroup.commons.tools.HumanReadableSize |
getSizeMax()
取得HTTP请求的最大尺寸,超过此尺寸的请求将被抛弃。 |
org.tinygroup.commons.tools.HumanReadableSize |
getSizeThreshold()
取得将文件放在内存中的阈值,小于此值的文件被保存在内存中。 |
boolean |
isDiskItemFactory()
|
boolean |
isKeepFormFieldInMemory()
是否将普通的form field保持在内存里? |
boolean |
isSaveInFile()
|
void |
setDiskItemFactory(boolean diskItemFactory)
|
void |
setFileNameKey(String[] fileNameKey)
|
void |
setFileSizeMax(org.tinygroup.commons.tools.HumanReadableSize fileSizeMax)
|
void |
setFileSizeMax(long fileSizeMax)
|
void |
setItemStorageBeanName(String itemStorageBeanName)
|
void |
setKeepFormFieldInMemory(boolean keepFormFieldInMemory)
|
void |
setRepository(File repository)
|
void |
setSaveInFile(boolean saveInFile)
|
void |
setSizeMax(org.tinygroup.commons.tools.HumanReadableSize sizeMax)
|
void |
setSizeMax(long sizeMax)
|
void |
setSizeThreshold(org.tinygroup.commons.tools.HumanReadableSize sizeThreshold)
|
void |
setSizeThreshold(int sizeThreshold)
|
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public UploadParameters()
| 方法详细信息 |
|---|
public boolean isDiskItemFactory()
public void setDiskItemFactory(boolean diskItemFactory)
public String getItemStorageBeanName()
public void setItemStorageBeanName(String itemStorageBeanName)
public File getRepository()
UploadConfiguration 复制的描述
UploadConfiguration 中的 getRepositorypublic void setRepository(File repository)
public org.tinygroup.commons.tools.HumanReadableSize getSizeMax()
UploadConfiguration 复制的描述-1表示没有限制。
UploadConfiguration 中的 getSizeMaxpublic void setSizeMax(org.tinygroup.commons.tools.HumanReadableSize sizeMax)
public void setSizeMax(long sizeMax)
public org.tinygroup.commons.tools.HumanReadableSize getFileSizeMax()
UploadConfiguration 复制的描述-1表示没有限制。
UploadConfiguration 中的 getFileSizeMaxpublic void setFileSizeMax(org.tinygroup.commons.tools.HumanReadableSize fileSizeMax)
public void setFileSizeMax(long fileSizeMax)
public org.tinygroup.commons.tools.HumanReadableSize getSizeThreshold()
UploadConfiguration 复制的描述
UploadConfiguration 中的 getSizeThresholdpublic void setSizeThreshold(org.tinygroup.commons.tools.HumanReadableSize sizeThreshold)
public void setSizeThreshold(int sizeThreshold)
public boolean isKeepFormFieldInMemory()
UploadConfiguration 复制的描述sizeThreshold值为0
的时候,该值自动为true。
UploadConfiguration 中的 isKeepFormFieldInMemorypublic void setKeepFormFieldInMemory(boolean keepFormFieldInMemory)
public boolean isSaveInFile()
UploadConfiguration 中的 isSaveInFilepublic void setSaveInFile(boolean saveInFile)
public String[] getFileNameKey()
UploadConfiguration 复制的描述Content-Disposition: attachment; filename=xxx.txt
。然而有些不规范的应用,会取fname=xxx.txt。此变量为兼容这种情况而设。
UploadConfiguration 中的 getFileNameKeypublic void setFileNameKey(String[] fileNameKey)
public void applyDefaultValues()
public boolean equals(Object obj)
Object 中的 equalspublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||