Configuring the outbound gateway for HTTP responses
The outbound gateway or outbound channel adapter configuration is related to a HTTP response, and options to configure the response. The default response type for a HTTP request is null. The response method is usually POST. If the response type is null and the HTTP status code is null, then the reply message will have the ResponseEntity
object. In the following sample configuration, we have configured the expected:
<int-http:outbound-gateway id="example" request-channel="requests" URL="http://localhost/test" http-method="POST" extract-request-payload="false" expected-response-type="java.lang.String" charset="UTF-8" request-factory="requestFactory" reply-timeout="1234" reply-channel="replies"/>
Configuring the outbound adapter for different response types
We shall now show you two samples of configuring the outbound adapter with different response types.
Here, the expected response type expression is...