response

Interceptors are usually applied to requests and responses. By nesting interceptors into a <response> Element you can limit their application to responses only.

Can be used in:

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

Syntax

<response>
  [interceptors]*
</response>

Sample

<api port="2000" method="POST">
    <response>
        <static>POST is blocked!</static>
    </response>
    <return statusCode="405"/>
</api>

See also