Skip to content

Commit

Permalink
Fix apache#599 Document the need to set quarkus.native.add-all-charse…
Browse files Browse the repository at this point in the history
…ts = true in HTTP extensions
  • Loading branch information
ppalaga committed Jan 21, 2020
1 parent 358bb4c commit 9b9838c
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
* xref:user-guide.adoc[User guide]
** xref:first-steps.adoc[First steps]
** xref:cdi.adoc[CDI]
** xref:native-mode.adoc[Native mode]
** xref:examples.adoc[Examples]
* xref:contributor-guide.adoc[Contributor guide]
* xref:list-of-camel-quarkus-extensions.adoc[List of Camel Quarkus extensions]
28 changes: 28 additions & 0 deletions docs/modules/ROOT/pages/extensions/ahc.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[[ahc]]
= Async HTTP Client (AHC) Extension

*Since Camel Quarkus 1.0.0*

The AHC component provides HTTP based endpoints for consuming external HTTP resources (as a client to call external
servers using HTTP). It is using the https://github.com/AsyncHttpClient/async-http-client[Async Http Client library]
under the hood.

Maven users will need to add the following dependency to their `pom.xml` for this extension.

[source,xml]
----
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-ahc</artifactId>
</dependency>
----

== Usage

Please refer to the https://camel.apache.org/components/latest/ahc-component.html[AHC] component page.


== Configuration

* Check the xref:native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect
your application to send or receive requests using non-default encodings.
27 changes: 27 additions & 0 deletions docs/modules/ROOT/pages/extensions/http.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[[http]]
= HTTP Extension

*Since Camel Quarkus 1.0.0*

The HTTP component provides HTTP based endpoints for calling external HTTP resources (as a client to call external
servers using HTTP).

Maven users will need to add the following dependency to their `pom.xml` for this extension.

[source,xml]
----
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-http</artifactId>
</dependency>
----

== Usage

Please refer to the https://camel.apache.org/components/latest/http-component.html[HTTP] component page.


== Configuration

* Check the xref:native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect
your application to send or receive requests using non-default encodings.
4 changes: 4 additions & 0 deletions docs/modules/ROOT/pages/extensions/netty-http.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ public class CamelRoute extends RouteBuilder {
}
----

== Configuration

* Check the xref:native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect
your application to send or receive requests using non-default encodings.
6 changes: 6 additions & 0 deletions docs/modules/ROOT/pages/extensions/platform-http.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@ from("platform-http:/upload/multipart?fileNameExtWhitelist=adoc,txt&httpMethodRe

Also check the `quarkus.http.body.*` configuration options in
https://quarkus.io/guides/all-config[Quarkus documentation], esp. `quarkus.http.body.handle-file-uploads`, `quarkus.http.body.uploads-directory` and `quarkus.http.body.delete-uploaded-files-on-end`.


== Configuration

* Check the xref:native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect
your application to send or receive requests using non-default encodings.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Number of Camel components: 57 in 49 JAR artifacts (0 deprecated)
|===
| Component | Since | Description

| link:https://camel.apache.org/components/latest/ahc-component.html[AHC] (camel-quarkus-ahc) +
| xref:extensions/ahc.adoc[AHC] (camel-quarkus-ahc) +
`ahc:httpUri` | 1.2.0 | To call external HTTP services using Async Http Client.

| link:https://camel.apache.org/components/latest/aws-ec2-component.html[AWS EC2] (camel-quarkus-aws-ec2) +
Expand Down Expand Up @@ -93,7 +93,7 @@ Number of Camel components: 57 in 49 JAR artifacts (0 deprecated)
| link:https://camel.apache.org/components/latest/ftps-component.html[FTPS] (camel-quarkus-ftp) +
`ftps:host:port/directoryName` | 1.0.0-M1 | The \ftps (FTP secure SSL/TLS) component is used for uploading or downloading files from FTP servers.

| link:https://camel.apache.org/components/latest/http-component.html[HTTP] (camel-quarkus-http) +
| xref:extensions/http.adoc[HTTP] (camel-quarkus-http) +
`http:httpUri` | 1.0.0 | For calling out to external HTTP servers using Apache HTTP Client 4.x.

| link:https://camel.apache.org/components/latest/infinispan-component.html[Infinispan] (camel-quarkus-infinispan) +
Expand Down
25 changes: 25 additions & 0 deletions docs/modules/ROOT/pages/native-mode.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
= Native mode

Things to consider before you run your application in the native mode.

[[charsets]]
== Character encodings

By default only a the following `Charsets` are available in the native mode (https://github.com/oracle/graal/blob/vm-19.3.0/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/LocalizationFeature.java#L149-L163[source]):

[code,text]
----
Charset.defaultCharset(), US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16
----

If you expect your application to need any encoding not included in this set or if you see
an `UnsupportedCharsetException` thrown in the native mode, please add the following entry to your
`application.properties`:

[code,properties]
----
quarkus.native.add-all-charsets = true
----

See also https://quarkus.io/guides/all-config#quarkus-core_quarkus.native.add-all-charsets[quarkus.native.add-all-charsets]
in Quarkus documentation.
4 changes: 2 additions & 2 deletions extensions/readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Number of Camel components: 57 in 49 JAR artifacts (0 deprecated)
|===
| Component | Since | Description

| link:https://camel.apache.org/components/latest/ahc-component.html[AHC] (camel-quarkus-ahc) +
| xref:extensions/ahc.adoc[AHC] (camel-quarkus-ahc) +
`ahc:httpUri` | 1.2.0 | To call external HTTP services using Async Http Client.

| link:https://camel.apache.org/components/latest/aws-ec2-component.html[AWS EC2] (camel-quarkus-aws-ec2) +
Expand Down Expand Up @@ -83,7 +83,7 @@ Number of Camel components: 57 in 49 JAR artifacts (0 deprecated)
| link:https://camel.apache.org/components/latest/ftps-component.html[FTPS] (camel-quarkus-ftp) +
`ftps:host:port/directoryName` | 1.0.0-M1 | The \ftps (FTP secure SSL/TLS) component is used for uploading or downloading files from FTP servers.

| link:https://camel.apache.org/components/latest/http-component.html[HTTP] (camel-quarkus-http) +
| xref:extensions/http.adoc[HTTP] (camel-quarkus-http) +
`http:httpUri` | 1.0.0 | For calling out to external HTTP servers using Apache HTTP Client 4.x.

| link:https://camel.apache.org/components/latest/infinispan-component.html[Infinispan] (camel-quarkus-infinispan) +
Expand Down

0 comments on commit 9b9838c

Please sign in to comment.