if allows conditional execution of nested interceptors.
<if test="method == 'POST'" language="SpEL">
...
</if>| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| test | true | - | Condition to be tested
|
|
| language | false | SpEL |
Language of the 'test' condition
|
SpEL, groovy, jsonpath, xpath |
| Elements | Description | Cardinality |
|---|---|---|
| echo | 0..* | |
| request | 0..* | |
| response | 0..* | |
| abort | 0..* |