Fix Reference Manual for wrong format and links
This commit is contained in:
@@ -1095,7 +1095,34 @@ The following Spring Boot application provides an example of configuring the out
|
||||
|
||||
[source, java]
|
||||
----
|
||||
// To be supplied when the DSL Amqp factory class adds support for the async gateway.
|
||||
@SpringBootApplication
|
||||
public class AmqpAsyncApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
ConfigurableApplicationContext context =
|
||||
new SpringApplicationBuilder(AmqpAsyncApplication.class)
|
||||
.web(false)
|
||||
.run(args);
|
||||
MyGateway gateway = context.getBean(MyGateway.class);
|
||||
String reply = gateway.sendToRabbit("foo");
|
||||
System.out.println(reply);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public IntegrationFlow asyncAmqpOutbound(AsyncRabbitTemplate asyncRabbitTemplate) {
|
||||
return f -> f
|
||||
.handle(Amqp.asyncOutboundGateway(asyncRabbitTemplate)
|
||||
.routingKey("foo")); // default exchange - route to queue 'foo'
|
||||
}
|
||||
|
||||
@MessagingGateway(defaultRequestChannel = "asyncAmqpOutbound.input")
|
||||
public interface MyGateway {
|
||||
|
||||
String sendToRabbit(String data);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
[[content-type-conversion-outbound]]
|
||||
@@ -1140,7 +1167,7 @@ JSON converter to be selected.
|
||||
|
||||
This applies to both the outbound channel adapter and gateway.
|
||||
|
||||
NOTE
|
||||
[NOTE]
|
||||
====
|
||||
Starting with _version 5.0_, headers that are added to the `MessageProperties` of the outbound message are never overwritten by mapped headers (by default).
|
||||
Previously, this was only the case if the message converter was a `ContentTypeDelegatingMessageConverter` (in that case, the header was mapped first, so that the proper converter could be selected).
|
||||
|
||||
@@ -226,7 +226,7 @@ Otherwise, it is treated as an `async` mode and the `Mono` response is adapted t
|
||||
|
||||
See http://docs.spring.io/spring/docs/5.0.0.M5/spring-framework-reference/html/web-reactive.html#web-reactive-client[WebFlux documentation] and https://projectreactor.io/[Project Reactor] for more information.
|
||||
|
||||
For other settings like cookie, uri variables, etc, please see <<HttpRequestExecutingMessageHandler>> above.
|
||||
For other settings like cookie, uri variables, etc, please see `HttpRequestExecutingMessageHandler` above.
|
||||
|
||||
[[http-namespace]]
|
||||
=== HTTP Namespace Support
|
||||
|
||||
@@ -30,7 +30,7 @@ See <<mongodb-outbound-gateway>> for more information.
|
||||
==== HTTP Reactive Outbound Gateway and Channel Adapter
|
||||
|
||||
The new `ReactiveHttpRequestExecutingMessageHandler` adds support for WebFlux `WebClient` for outbound channel adapter and gateway.
|
||||
See <<ReactiveHttpRequestExecutingMessageHandler>> for more information.
|
||||
See <<http-outbound>> for more information.
|
||||
|
||||
==== Content Type Conversion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user