public class MaxAgeRule extends AbstractModel
header, skipSign| Constructor and Description |
|---|
MaxAgeRule() |
MaxAgeRule(MaxAgeRule 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 |
getFollowOrigin()
Get Whether to follow the origin server.
|
String[] |
getMaxAgeContents()
Get Matching content under the corresponding type of MaxAgeType: Fill in * when all is used; Fill in suffix name when file is used, such as jpg, txt; Fill in path when directory is used, such as /xxx/ test/; Fill in the absolute path when path is specified, such as /xxx/test.html.
|
Long |
getMaxAgeTime()
Get MaxAge time setting, unit second; Note: The time is 0, which means no caching.
|
String |
getMaxAgeType()
Get Rule type: all: valid for all files; file: valid for specified file suffix; directory: valid for specified path; path: specified absolute The path takes effect.
|
void |
setFollowOrigin(String FollowOrigin)
Set Whether to follow the origin server.
|
void |
setMaxAgeContents(String[] MaxAgeContents)
Set Matching content under the corresponding type of MaxAgeType: Fill in * when all is used; Fill in suffix name when file is used, such as jpg, txt; Fill in path when directory is used, such as /xxx/ test/; Fill in the absolute path when path is specified, such as /xxx/test.html.
|
void |
setMaxAgeTime(Long MaxAgeTime)
Set MaxAge time setting, unit second; Note: The time is 0, which means no caching.
|
void |
setMaxAgeType(String MaxAgeType)
Set Rule type: all: valid for all files; file: valid for specified file suffix; directory: valid for specified path; path: specified absolute The path takes effect.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic MaxAgeRule()
public MaxAgeRule(MaxAgeRule source)
public String getMaxAgeType()
public void setMaxAgeType(String MaxAgeType)
MaxAgeType - Rule type: public String[] getMaxAgeContents()
public void setMaxAgeContents(String[] MaxAgeContents)
MaxAgeContents - Matching content under the corresponding type of MaxAgeType: public Long getMaxAgeTime()
public void setMaxAgeTime(Long MaxAgeTime)
MaxAgeTime - MaxAge time setting, unit second; Note: The time is 0, which means no caching. public String getFollowOrigin()
public void setFollowOrigin(String FollowOrigin)
FollowOrigin - Whether to follow the origin server. Valid values: on and off. If it's on, MaxAgeTime is ignored.Copyright © 2024. All rights reserved.