Evaluate Expression

Overview

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:

Configuration

Name:

Enter a descriptive name for this filter.

Expression location:

Enter the selector expression to be evaluated. Defaults to the following:

${http.client.cgiArgument('expr')}

Expression type:

Enter the type of the selector expression to be evaluated. Defaults to java.lang.String.