RequestMapping support for an inbound channel adapter or a gateway
The
requestmapping
configuration can be done for an inbound channel adapter, or a gateway, as shown in the following code:
<inbound-gateway id="inboundController" request-channel="requests" reply-channel="responses" path="/foo/{fooId}" supported-methods="GET" view-name="foo" error-code="oops"> <request-mapping headers="User-Agent" <!—-headers=""--> params="myParam=myValue" consumes="application/json" produces="!text/plain"/> </inbound-gateway>
Based on this configuration, the namespace parser creates an instance of IntegrationRequestMappingHandlerMapping
(if none exist yet), a HttpRequestHandlingController
bean, and associated with it, an instance of RequestMapping
, which, in turn, ...
Get Mastering Spring Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.