h4. Interceptor
Example of an interceptor configuration:
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<!--...-->
<petalsCDK:su-interceptors>
<petalsCDK:send>
<petalsCDK:interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
<petalsCDK:param name="myParamName2">myParamValue2</petalsCDK:param>
</petalsCDK:interceptor>
</petalsCDK:send>
<petalsCDK:accept>
<petalsCDK:interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
</petalsCDK:interceptor>
</petalsCDK:accept>
<petalsCDK:send-response>
<petalsCDK:Interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
</petalsCDK:Interceptor>
</petalsCDK:send-response>
<petalsCDK:accept-response>
<petalsCDK:Interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
</petalsCDK:Interceptor>
</petalsCDK:accept-response>
</petalsCDK:su-interceptors>
<!--...-->{code}
{center}
*Interceptors configuration for SU (CDK)*
{center}
{table-plus}
|| Parameter || Description || Default || Required ||
| send | Interceptor dedicated to send phase, for a IN message | {center}\-{center} | {center}No{center} |
| accept | Interceptor dedicated to receive phase, for a IN message | {center}\-{center} | {center}No{center} |
| send-response | Interceptor dedicated to send phase, for a OUT or FAULT message | {center}\-{center} | {center}No{center} |
| accept-response | Interceptor dedicated to receive phase, for a OUT or FAULT message | {center}\-{center} | {center}No{center} |
| interceptor - name | Logical name of the interceptor instance. It can be referenced to add extended parameters by a SU Interceptor configuration. | {center}\-{center} | {center}Yes{center} |
| param\[\] - name | The name of the parameter to use for the interceptor for this SU | {center}\-{center} | {center}No{center} |
| param\[\] | The value of the parameter to use for the interceptor for this SU | {center}\-{center} | {center}No{center} |
{table-plus}
Example of an interceptor configuration:
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<!--...-->
<petalsCDK:su-interceptors>
<petalsCDK:send>
<petalsCDK:interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
<petalsCDK:param name="myParamName2">myParamValue2</petalsCDK:param>
</petalsCDK:interceptor>
</petalsCDK:send>
<petalsCDK:accept>
<petalsCDK:interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
</petalsCDK:interceptor>
</petalsCDK:accept>
<petalsCDK:send-response>
<petalsCDK:Interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
</petalsCDK:Interceptor>
</petalsCDK:send-response>
<petalsCDK:accept-response>
<petalsCDK:Interceptor name="myInterceptorName">
<petalsCDK:param name="myParamName">myParamValue</petalsCDK:param>
</petalsCDK:Interceptor>
</petalsCDK:accept-response>
</petalsCDK:su-interceptors>
<!--...-->{code}
{center}
*Interceptors configuration for SU (CDK)*
{center}
{table-plus}
|| Parameter || Description || Default || Required ||
| send | Interceptor dedicated to send phase, for a IN message | {center}\-{center} | {center}No{center} |
| accept | Interceptor dedicated to receive phase, for a IN message | {center}\-{center} | {center}No{center} |
| send-response | Interceptor dedicated to send phase, for a OUT or FAULT message | {center}\-{center} | {center}No{center} |
| accept-response | Interceptor dedicated to receive phase, for a OUT or FAULT message | {center}\-{center} | {center}No{center} |
| interceptor - name | Logical name of the interceptor instance. It can be referenced to add extended parameters by a SU Interceptor configuration. | {center}\-{center} | {center}Yes{center} |
| param\[\] - name | The name of the parameter to use for the interceptor for this SU | {center}\-{center} | {center}No{center} |
| param\[\] | The value of the parameter to use for the interceptor for this SU | {center}\-{center} | {center}No{center} |
{table-plus}