This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new 72bc9bb  Fixup #1244 Improve the docs about the default REST transport 
provider
72bc9bb is described below

commit 72bc9bb538d8373f86b676141b7f705987c94363
Author: Peter Palaga <[email protected]>
AuthorDate: Mon Jul 27 12:38:27 2020 +0200

    Fixup #1244 Improve the docs about the default REST transport provider
---
 docs/modules/ROOT/pages/extensions/rest.adoc       | 23 +++++++++++++++++++++-
 .../rest/runtime/src/main/doc/configuration.adoc   | 23 +++++++++++++++++++++-
 2 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/docs/modules/ROOT/pages/extensions/rest.adoc 
b/docs/modules/ROOT/pages/extensions/rest.adoc
index 2c3589e..20f7170 100644
--- a/docs/modules/ROOT/pages/extensions/rest.adoc
+++ b/docs/modules/ROOT/pages/extensions/rest.adoc
@@ -30,5 +30,26 @@ Check the xref:user-guide/index.adoc[User guide] for more 
information about writ
 
 == Additional Camel Quarkus configuration
 
-This extension configures the xref:extensions/platform-http.adoc as the 
component that provides the REST transport.
+This extension depends on the xref:extensions/platform-http.adoc extension and 
configures it as the component that
+provides the REST transport.
+
+To use another REST transport provider, such as `netty-http` or `servlet`, you 
need to add the respective
+extension as a dependency to your project and set the provider in your 
`RouteBuilder`. E.g. for `servlet`, you'd
+have to add the `org.apache.camel.quarkus:camel-quarkus-servlet` dependency 
and the set the provider as
+follows:
+
+[source,java]
+----
+import org.apache.camel.builder.RouteBuilder;
+
+public class CamelRoute extends RouteBuilder {
+
+    @Override
+    public void configure() {
+        restConfiguration()
+                .component("servlet");
+        ...
+    }
+}
+----
 
diff --git a/extensions/rest/runtime/src/main/doc/configuration.adoc 
b/extensions/rest/runtime/src/main/doc/configuration.adoc
index 05a6646..bdc03c0 100644
--- a/extensions/rest/runtime/src/main/doc/configuration.adoc
+++ b/extensions/rest/runtime/src/main/doc/configuration.adoc
@@ -1 +1,22 @@
-This extension configures the xref:extensions/platform-http.adoc as the 
component that provides the REST transport.
\ No newline at end of file
+This extension depends on the xref:extensions/platform-http.adoc extension and 
configures it as the component that
+provides the REST transport.
+
+To use another REST transport provider, such as `netty-http` or `servlet`, you 
need to add the respective
+extension as a dependency to your project and set the provider in your 
`RouteBuilder`. E.g. for `servlet`, you'd
+have to add the `org.apache.camel.quarkus:camel-quarkus-servlet` dependency 
and the set the provider as
+follows:
+
+[source,java]
+----
+import org.apache.camel.builder.RouteBuilder;
+
+public class CamelRoute extends RouteBuilder {
+
+    @Override
+    public void configure() {
+        restConfiguration()
+                .component("servlet");
+        ...
+    }
+}
+----

Reply via email to