Vert.x HTTP Client
Send requests to external HTTP servers using Vert.x
What’s inside
-
Vert.x HTTP Client component, URI syntax:
vertx-http:httpUri
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-vertx-http-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 21 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.vertx-http.allow-java-serialized-object | Whether to allow Java serialization with the content type application/x-java-serialized-object: a request body with this content type is sent as a serialized Java object, and a response with this content type is deserialized into a Java object. This is disabled by default. If you enable this, be aware that Java will deserialize the data of the response, which can be a security risk. | false | Boolean |
camel.component.vertx-http.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.vertx-http.basic-auth-password | The password to use for basic authentication. Used by the endpoints that do not set it. | String | |
camel.component.vertx-http.basic-auth-username | The user name to use for basic authentication. Used by the endpoints that do not set it. | String | |
camel.component.vertx-http.bearer-token | The bearer token to use for bearer token authentication. Used by the endpoints that do not set it. | String | |
camel.component.vertx-http.enabled | Whether to enable auto configuration of the vertx-http component. This is enabled by default. | Boolean | |
camel.component.vertx-http.header-filter-strategy | To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. The option is a org.apache.camel.spi.HeaderFilterStrategy type. | HeaderFilterStrategy | |
camel.component.vertx-http.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.vertx-http.proxy-host | The host name of the proxy server. Used by the endpoints that do not set it. The proxy options are not applied when webClientOptions is set. | String | |
camel.component.vertx-http.proxy-password | The proxy server password if authentication is required. | String | |
camel.component.vertx-http.proxy-port | The port of the proxy server. Used by the endpoints that do not set it. Vert.x uses 3128 when a proxy is configured without a port. | Integer | |
camel.component.vertx-http.proxy-type | The type of the proxy server. Used by the endpoints that do not set it. Vert.x uses HTTP when not set. | ProxyType | |
camel.component.vertx-http.proxy-username | The proxy server username if authentication is required. | String | |
camel.component.vertx-http.response-payload-as-byte-array | Whether to set the response body as a byte[]. When false, the body is the io.vertx.core.buffer.Buffer of Vert.x. Used as the default of the endpoints. | true | Boolean |
camel.component.vertx-http.ssl-context-parameters | To configure security using SSLContextParameters. The option is a org.apache.camel.support.jsse.SSLContextParameters type. | SSLContextParameters | |
camel.component.vertx-http.tracing-policy | The tracing policy used by the HTTP client when integrating with observability frameworks such as OpenTelemetry. If not specified the HTTP client applies a default tracing policy of PROPAGATE. Used by the endpoints that do not set it. Not applied when webClientOptions is set. | TracingPolicy | |
camel.component.vertx-http.use-global-ssl-context-parameters | Enable usage of global SSL context parameters. | false | Boolean |
camel.component.vertx-http.vertx | To use an existing Vert.x instance. When not set, the single Vertx in the registry is used, otherwise the component creates its own instance and closes it when it stops. The option is a io.vertx.core.Vertx type. | Vertx | |
camel.component.vertx-http.vertx-http-binding | A custom VertxHttpBinding that controls how the Camel message is turned into the Vert.x HTTP request, and the HTTP response into the Camel message. Used by the endpoints that do not set it. The option is a org.apache.camel.component.vertx.http.VertxHttpBinding type. | VertxHttpBinding | |
camel.component.vertx-http.vertx-options | The options of the Vert.x instance that the component creates, when it does not use an existing one. The option is a io.vertx.core.VertxOptions type. | VertxOptions | |
camel.component.vertx-http.web-client-options | Custom options of the Vert.x WebClient, used by the endpoints that do not set them. When set, the connectTimeout, useCompression, tracingPolicy and proxy options are not applied: set them on these options instead. The option is a io.vertx.ext.web.client.WebClientOptions type. | WebClientOptions |