The complete set of operators for simple language predicates is shown in Table 17.2.
Table 17.2. Operators for the Simple Language
Operator | Description |
---|---|
== | Equals. |
> | Greater than. |
>= | Greater than or equals. |
< | Less than. |
<= | Less than or equals. |
!= | Not equal to. |
contains | Test if LHS string contains RHS string. |
not contains | Test if LHS string does not contain RHS string. |
regex | Test if LHS string matches RHS regular expression. |
not regex | Test if LHS string does not match RHS regular expression. |
in | Test if LHS string appears in the RHS comma-separated list. |
not in | Test if LHS string does not appear in the RHS comma-separated list. |
is | Test if LHS is an instance of RHS Java type (using Java
instanceof operator). |
not is | Test if LHS is not an instance of RHS Java
type (using Java instanceof operator). |
range | Test if LHS number lies in the RHS range (where range has the
format,
min ... max ). |
not range | Test if LHS number does not lie in the RHS
range (where range has the format,
min ... max ). |
The conjunctions shown in Table 17.3 can be used to combine two or more simple language predicates.
Table 17.3. Conjunctions for Simple Language Predicates
Operator | Description |
---|---|
and | Combine two predicates with logical and. Since Fuse Mediation Router 2.5, it is possible to combine more than two predicates with this operator. |
or | Combine two predicates with logical inclusive or. Since Fuse Mediation Router 2.5, it is possible to combine more than two predicates with this operator. |
For example, you could use the and
conjunction to combine two
predicate expressions as follows:
${header.foo} >= 0 and ${header.foo} < 100