public class PostMaxSize extends AbstractModel
Constructor and Description |
---|
PostMaxSize() |
PostMaxSize(PostMaxSize source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getMaxSize()
Get 最大限制,取值在1MB和500MB之间。单位字节。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getSwitch()
Get 是否开启POST请求上传文件限制,平台默认为限制为32MB,取值有:
on:开启限制;
off:关闭限制。
|
void |
setMaxSize(Long MaxSize)
Set 最大限制,取值在1MB和500MB之间。单位字节。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSwitch(String Switch)
Set 是否开启POST请求上传文件限制,平台默认为限制为32MB,取值有:
on:开启限制;
off:关闭限制。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public PostMaxSize()
public PostMaxSize(PostMaxSize source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 是否开启POST请求上传文件限制,平台默认为限制为32MB,取值有:
public Long getMaxSize()
public void setMaxSize(Long MaxSize)
MaxSize
- 最大限制,取值在1MB和500MB之间。单位字节。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.