你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MatchCondition 类

  • java.lang.Object
    • com.microsoft.azure.management.cdn.MatchCondition

public class MatchCondition

定义匹配条件。

构造函数摘要

构造函数 说明
MatchCondition()

方法摘要

修饰符和类型 方法和描述
java.util.List<java.lang.String> matchValue()

获取可能的匹配值列表。

MatchVariable matchVariable()

获取要进行比较的匹配变量。

java.lang.Boolean negateCondition()

Get 描述此条件的结果是否应否定。

Operator operator()

获取要匹配的 describes 运算符。

java.lang.String selector()

获取选择器可用于匹配查询字符串、Cookie、请求标头或 PostArgs 的特定键。

java.util.List<TransformType> transforms()

获取转换列表。

MatchCondition withMatchValue(List<String> matchValue)

设置可能的匹配值的列表。

MatchCondition withMatchVariable(MatchVariable matchVariable)

设置要与之进行比较的匹配变量。

MatchCondition withNegateCondition(Boolean negateCondition)

Set 描述是否应否定此条件的结果。

MatchCondition withOperator(Operator operator)

设置要匹配的 describes 运算符。

MatchCondition withSelector(String selector)

设置选择器可用于匹配查询字符串、Cookie、请求标头或 PostArgs 的特定键。

MatchCondition withTransforms(List<TransformType> transforms)

设置转换列表。

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

构造函数详细信息

MatchCondition

public MatchCondition()

方法详细信息

matchValue

public List matchValue()

获取可能的匹配值列表。

Returns:

matchValue 值

matchVariable

public MatchVariable matchVariable()

获取要进行比较的匹配变量。 可能的值包括:“RemoteAddr”、“SocketAddr”、“RequestMethod”、“RequestHeader”、“RequestUri”、“QueryString”、“RequestBody”、“Cookies”、“PostArgs”。

Returns:

matchVariable 值

negateCondition

public Boolean negateCondition()

Get 描述此条件的结果是否应否定。

Returns:

negateCondition 值

operator

public Operator operator()

获取要匹配的 describes 运算符。 可能的值包括:“Any”、“IPMatch”、“GeoMatch”、“Equal”、“Contains”、“LessThan”、“GreaterThan”、“LessThanOrEqual”、“GreaterThanOrEqual”、“GreaterThanOrEqual”、“GreaterThanOrEqual”、“BeginsWith”、“EndsWith”、“RegEx”。

Returns:

运算符值

selector

public String selector()

获取选择器可用于匹配 QueryString、Cookie、RequestHeader 或 PostArgs 的特定键。

Returns:

选择器值

transforms

public List transforms()

获取转换列表。

Returns:

转换值

withMatchValue

public MatchCondition withMatchValue(List matchValue)

设置可能的匹配值的列表。

Parameters:

matchValue - 要设置的 matchValue 值

Returns:

MatchCondition 对象本身。

withMatchVariable

public MatchCondition withMatchVariable(MatchVariable matchVariable)

设置要与之进行比较的匹配变量。 可能的值包括:“RemoteAddr”、“SocketAddr”、“RequestMethod”、“RequestHeader”、“RequestUri”、“QueryString”、“RequestBody”、“Cookies”、“PostArgs”。

Parameters:

matchVariable - 要设置的 matchVariable 值

Returns:

MatchCondition 对象本身。

withNegateCondition

public MatchCondition withNegateCondition(Boolean negateCondition)

Set 描述是否应否定此条件的结果。

Parameters:

negateCondition - 要设置的 negateCondition 值

Returns:

MatchCondition 对象本身。

withOperator

public MatchCondition withOperator(Operator operator)

设置要匹配的 describes 运算符。 可能的值包括:“Any”、“IPMatch”、“GeoMatch”、“Equal”、“Contains”、“LessThan”、“GreaterThan”、“LessThanOrEqual”、“GreaterThanOrEqual”、“GreaterThanOrEqual”、“GreaterThanOrEqual”、“BeginsWith”、“EndsWith”、“RegEx”。

Parameters:

operator - 要设置的运算符值

Returns:

MatchCondition 对象本身。

withSelector

public MatchCondition withSelector(String selector)

设置选择器可用于匹配 QueryString、Cookie、RequestHeader 或 PostArgs 的特定键。

Parameters:

selector - 要设置的选择器值

Returns:

MatchCondition 对象本身。

withTransforms

public MatchCondition withTransforms(List transforms)

设置转换列表。

Parameters:

transforms - 要设置的 转换值

Returns:

MatchCondition 对象本身。

适用于