public class UpstreamRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpstreamRule() |
UpstreamRule(UpstreamRule 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[] |
getAddressList()
Get 规则匹配后生效的回源地址。
|
Long |
getBalanceType()
Get 回源负载均衡类型,仅多个回源地址时生效。
0:轮询
1:IP_HASH
|
String[] |
getContentList()
Get 匹配的内容。equal和not equal时,数组只能有一个元素
|
String |
getKeyName()
Get 匹配的关键字。目前支持host、uri两种
|
String |
getSymbol()
Get 逻辑符号。
equal:等于
not equal:不等于
belong:属于
not belong:不属于
|
void |
setAddressList(String[] AddressList)
Set 规则匹配后生效的回源地址。
|
void |
setBalanceType(Long BalanceType)
Set 回源负载均衡类型,仅多个回源地址时生效。
0:轮询
1:IP_HASH
|
void |
setContentList(String[] ContentList)
Set 匹配的内容。equal和not equal时,数组只能有一个元素
|
void |
setKeyName(String KeyName)
Set 匹配的关键字。目前支持host、uri两种
|
void |
setSymbol(String Symbol)
Set 逻辑符号。
equal:等于
not equal:不等于
belong:属于
not belong:不属于
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public UpstreamRule()
public UpstreamRule(UpstreamRule source)
public String getKeyName()
public void setKeyName(String KeyName)
KeyName
- 匹配的关键字。目前支持host、uri两种public String getSymbol()
public void setSymbol(String Symbol)
Symbol
- 逻辑符号。
equal:等于
not equal:不等于
belong:属于
not belong:不属于public String[] getContentList()
public void setContentList(String[] ContentList)
ContentList
- 匹配的内容。equal和not equal时,数组只能有一个元素public String[] getAddressList()
public void setAddressList(String[] AddressList)
AddressList
- 规则匹配后生效的回源地址。public Long getBalanceType()
public void setBalanceType(Long BalanceType)
BalanceType
- 回源负载均衡类型,仅多个回源地址时生效。
0:轮询
1:IP_HASHCopyright © 2025. All rights reserved.