public class CompressionRule extends AbstractModel
Constructor and Description |
---|
CompressionRule() |
CompressionRule(CompressionRule 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 |
---|---|
String[] |
getAlgorithms()
Get 文件压缩算法
gzip:指定 GZIP 压缩
brotli:指定Brotli压缩
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getCompress()
Get true:需要设置为 ture,启用压缩
注意:此字段可能返回 null,表示取不到有效值。
|
String[] |
getFileExtensions()
Get 根据文件后缀类型压缩
例如 jpg、txt
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getMaxLength()
Get 触发压缩的文件长度最大值,单位为字节数
最大可设置为 30MB
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getMinLength()
Get 触发压缩的文件长度最小值,单位为字节数
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAlgorithms(String[] Algorithms)
Set 文件压缩算法
gzip:指定 GZIP 压缩
brotli:指定Brotli压缩
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCompress(Boolean Compress)
Set true:需要设置为 ture,启用压缩
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFileExtensions(String[] FileExtensions)
Set 根据文件后缀类型压缩
例如 jpg、txt
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMaxLength(Long MaxLength)
Set 触发压缩的文件长度最大值,单位为字节数
最大可设置为 30MB
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMinLength(Long MinLength)
Set 触发压缩的文件长度最小值,单位为字节数
注意:此字段可能返回 null,表示取不到有效值。
|
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 CompressionRule()
public CompressionRule(CompressionRule source)
public Boolean getCompress()
public void setCompress(Boolean Compress)
Compress
- true:需要设置为 ture,启用压缩
注意:此字段可能返回 null,表示取不到有效值。public String[] getFileExtensions()
public void setFileExtensions(String[] FileExtensions)
FileExtensions
- 根据文件后缀类型压缩
例如 jpg、txt
注意:此字段可能返回 null,表示取不到有效值。public Long getMinLength()
public void setMinLength(Long MinLength)
MinLength
- 触发压缩的文件长度最小值,单位为字节数
注意:此字段可能返回 null,表示取不到有效值。public Long getMaxLength()
public void setMaxLength(Long MaxLength)
MaxLength
- 触发压缩的文件长度最大值,单位为字节数
最大可设置为 30MB
注意:此字段可能返回 null,表示取不到有效值。public String[] getAlgorithms()
public void setAlgorithms(String[] Algorithms)
Algorithms
- 文件压缩算法
gzip:指定 GZIP 压缩
brotli:指定Brotli压缩
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2021. All rights reserved.