RuleCondition class
Information about a condition for a rule.
Each rule can optionally include up to one of each of the following
conditions: http-request-method
, host-header
,
path-pattern
, and source-ip
. Each rule can also
optionally include one or more of each of the following conditions:
http-header
and query-string
.
Constructors
-
RuleCondition({String? field, HostHeaderConditionConfig? hostHeaderConfig, HttpHeaderConditionConfig? httpHeaderConfig, HttpRequestMethodConditionConfig? httpRequestMethodConfig, PathPatternConditionConfig? pathPatternConfig, QueryStringConditionConfig? queryStringConfig, SourceIpConditionConfig? sourceIpConfig, List<
String> ? values}) - RuleCondition.fromXml(XmlElement elem)
-
factory
Properties
- field → String?
-
The field in the HTTP request. The following are the possible values:
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostHeaderConfig → HostHeaderConditionConfig?
-
Information for a host header condition. Specify only when
Field
ishost-header
.final - httpHeaderConfig → HttpHeaderConditionConfig?
-
Information for an HTTP header condition. Specify only when
Field
ishttp-header
.final - httpRequestMethodConfig → HttpRequestMethodConditionConfig?
-
Information for an HTTP method condition. Specify only when
Field
ishttp-request-method
.final - pathPatternConfig → PathPatternConditionConfig?
-
Information for a path pattern condition. Specify only when
Field
ispath-pattern
.final - queryStringConfig → QueryStringConditionConfig?
-
Information for a query string condition. Specify only when
Field
isquery-string
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceIpConfig → SourceIpConditionConfig?
-
Information for a source IP condition. Specify only when
Field
issource-ip
.final -
values
→ List<
String> ? -
The condition value. Specify only when
Field
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited