How can I create http outbound-gateway with JAVA config in Spring integration?

Viewed 2339

I have the following http outbound gateway. How can I do this configuration with Java Config or Spring DSL?

<int-http:outbound-gateway id="test"
                           url="http://localhost:8080/"
                           http-method="POST"
                           charset="UTF-8"
                           header-mapper="soapHeaderMapper"
                           request-factory="requestFactory"
                           request-channel="inputChannel"/>
1 Answers
Related