Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The ESB provides access to the exact values of the template variables through message context properties. For example, if you have a resource configured with the URI template “/dictionary/{char}/{word}”, and a request “/dictionary/c/cat” is sent to the ESB, it will be dispatched to this resource, and we will be able to retrieve the exact values of the two variables using the "get-property" XPath extension of WSO2 ESB. For example:

<log level="custom">
   <property    <property name="Character" expression="get-property('uri.var.char')"/>
   <property    <property name="Word" expression="get-property('uri.var.word')"/>
</log>

This log mediator configuration would generate the following output for the request “/dictionary/c/cat”:

...