1. Proxies and Flow

response

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

Can be used in:

serviceProxy, api, proxy, global, chainDef, for, stompProxy, if, registration, wsStompReassembler, internal, interceptor, chain, 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