public class HttpHeaderPathRule extends AbstractModel
Constructor and Description |
---|
HttpHeaderPathRule() |
Modifier and Type | Method and Description |
---|---|
String |
getHeaderMode()
Get HTTP header setting method
add: add header.
|
String |
getHeaderName()
Get HTTP header name.
|
String |
getHeaderValue()
Get HTTP header value.
|
String[] |
getRulePaths()
Get Matching content under the corresponding types for RuleType:
For "all", enter an asterisk (*).
|
String |
getRuleType()
Get Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setHeaderMode(String HeaderMode)
Set HTTP header setting method
add: add header.
|
void |
setHeaderName(String HeaderName)
Set HTTP header name.
|
void |
setHeaderValue(String HeaderValue)
Set HTTP header value.
|
void |
setRulePaths(String[] RulePaths)
Set Matching content under the corresponding types for RuleType:
For "all", enter an asterisk (*).
|
void |
setRuleType(String RuleType)
Set Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
Note: this field may return null, indicating that no valid values can be obtained.
|
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 String getHeaderMode()
public void setHeaderMode(String HeaderMode)
HeaderMode
- HTTP header setting method
add: add header. If a header exists, then there will be a repeated header.
set: only supports origin-pull header configuration. If a header exists, it will be overwritten. If one does not exist, then the header will be added.
del: delete header
Note: this field may return null, indicating that no valid values can be obtained.public String getHeaderName()
public void setHeaderName(String HeaderName)
HeaderName
- HTTP header name. Up to 100 characters can be set.
Note: this field may return null, indicating that no valid values can be obtained.public String getHeaderValue()
public void setHeaderValue(String HeaderValue)
HeaderValue
- HTTP header value. Up to 1000 characters can be set.
It is not required when Mode is del
It is required when Mode is add/set
Note: this field may return null, indicating that no valid values can be obtained.public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
Note: this field may return null, indicating that no valid values can be obtained.public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Matching content under the corresponding types for RuleType:
For "all", enter an asterisk (*).
For "file", enter the suffix, such as jpg, txt.
For "directory", enter the path, such as /xxx/test/.
For "path", enter the corresponding absolute path, such as /xxx/test.html.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2020. All rights reserved.