Go to new doc!

+49 228 5552576-0


info@predic8.com

return

Description

Terminates the exchange flow. The returned response is determined in the following order: 1. If there is already a response in the exchange, that response is returned 2. If there is no response in the exchange, the body and contentType of the request is copied into a new response. The options statusCode and contentType will overwrite the values from the messages. This plugin is useful together with the template plugin. See examples/template.

Can be used in

spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler

Attributes

Name Required Default Description Example
contentType false -
statusCode false -