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, is converted to Spring MVC RequestMappingInfo.
With the path and supported method, the attributes of <http:inbound-channel-adapter>, or <http:inbound-gateway>, <request...