Contents
The Evaluate Expression filter enables you to extract a string, convert it into a selector expression, and evaluate the contents of that expression. This filter is useful for testing purposes.
For example, you could configure an Evaluate Expression filter with the following default value:
${http.client.cgiArgument('expr')}
You could then chain this filter to a Set Message filter
that specifies the ${value}
message attribute generated by
the Evaluate Expression filter in its message body. Then
in this case, the following HTTP client request would result in a value of
3
in the response message body:
http://localhost:8080/req?expr=${1+2}
For more details, see the following topics: