4. Interceptors/Features

regExReplacer

Runs a regular-expression-replacement on either the message body (default) or all header values.

Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

Syntax

<regExReplacer regex="string" replace="string" target="header|body" />

Sample

<serviceProxy port="2000">
  <regExReplacer regex="Hallo" replace="Hello" />
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExample
regex true - Regex to match against the body. Hallo
replace true - String used to replace matched parts. Hello
target false body
Whether the replacement should affect the message <tt>body</tt> or the <tt>header</tt> values. Possible values are body and header. header