This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new b7ba82c Regen
b7ba82c is described below
commit b7ba82c38a6524d32cb0cac2914fd3c4893f844c
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Dec 18 05:33:13 2019 +0100
Regen
---
bom/camel-bom/pom.xml | 10 +++++-----
components/camel-http/src/main/docs/http-component.adoc | 2 +-
.../builder/endpoint/dsl/HttpEndpointBuilderFactory.java | 13 +++++++++++++
docs/components/modules/ROOT/pages/http-component.adoc | 3 ++-
docs/components/modules/ROOT/pages/index.adoc | 4 ++--
5 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 8f6fd91..e01c2cc 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1205,6 +1205,11 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-openapi-java</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-openstack</artifactId>
<version>${project.version}</version>
</dependency>
@@ -1580,11 +1585,6 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
- <artifactId>camel-openapi-java</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
<artifactId>camel-syslog</artifactId>
<version>${project.version}</version>
</dependency>
diff --git a/components/camel-http/src/main/docs/http-component.adoc
b/components/camel-http/src/main/docs/http-component.adoc
index a0cf53e..77fc290 100644
--- a/components/camel-http/src/main/docs/http-component.adoc
+++ b/components/camel-http/src/main/docs/http-component.adoc
@@ -121,6 +121,7 @@ with the following path and query parameters:
| *clearExpiredCookies* (producer) | Whether to clear expired cookies before
sending the HTTP request. This ensures the cookies store does not keep growing
by adding new cookies which is newer removed when they are expired. | true |
boolean
| *connectionClose* (producer) | Specifies whether a Connection Close header
must be added to HTTP Request. By default connectionClose is false. | false |
boolean
| *copyHeaders* (producer) | If this option is true then IN exchange headers
will be copied to OUT exchange headers according to copy strategy. Setting this
to false, allows to only include the headers from the HTTP response (not
propagating IN headers). | true | boolean
+| *customHostHeader* (producer) | Defines a custom host header which will be
sent when producing http request. When not set in query will be ignored. When
set will override host header derived from url. Default: null | | String
| *httpMethod* (producer) | Configure the HTTP method to use. The HttpMethod
header cannot override this option if set. | | HttpMethods
| *ignoreResponseBody* (producer) | If this option is true, The http producer
won't read response body and cache the input stream | false | boolean
| *lazyStartProducer* (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 [...]
@@ -132,7 +133,6 @@ with the following path and query parameters:
| *deleteWithBody* (producer) | Whether the HTTP DELETE should include the
message body or not. By default HTTP DELETE do not include any HTTP body.
However in some rare cases users may need to be able to include the message
body. | false | boolean
| *getWithBody* (producer) | Whether the HTTP GET should include the message
body or not. By default HTTP GET do not include any HTTP body. However in some
rare cases users may need to be able to include the message body. | false |
boolean
| *okStatusCodeRange* (producer) | The status codes which are considered a
success response. The values are inclusive. Multiple ranges can be defined,
separated by comma, e.g. 200-204,209,301-304. Each range must be a single
number or from-to with the dash included. | 200-299 | String
-| *customHostHeader* (producer) | When set will override host header to the
value provided. Works only with Java >= 12. In order to use this feature set
-Djdk.httpclient.allowRestrictedHeaders=host. | | String
| *basicPropertyBinding* (advanced) | Whether the endpoint should use basic
property binding (Camel 2.x) or the newer property binding with additional
capabilities | false | boolean
| *clientBuilder* (advanced) | Provide access to the http client request
parameters used on new RequestConfig instances used by producers or consumers
of this endpoint. | | HttpClientBuilder
| *clientConnectionManager* (advanced) | To use a custom
HttpClientConnectionManager to manage connections | |
HttpClientConnectionManager
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
index c2a91a8..3b317dd 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
@@ -253,6 +253,19 @@ public interface HttpEndpointBuilderFactory {
return this;
}
/**
+ * Defines a custom host header which will be sent when producing http
+ * request. When not set in query will be ignored. When set will
+ * override host header derived from url. Default: null.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ */
+ default HttpEndpointBuilder customHostHeader(String customHostHeader) {
+ doSetProperty("customHostHeader", customHostHeader);
+ return this;
+ }
+ /**
* Configure the HTTP method to use. The HttpMethod header cannot
* override this option if set.
*
diff --git a/docs/components/modules/ROOT/pages/http-component.adoc
b/docs/components/modules/ROOT/pages/http-component.adoc
index d81bae8..e3d0bcd 100644
--- a/docs/components/modules/ROOT/pages/http-component.adoc
+++ b/docs/components/modules/ROOT/pages/http-component.adoc
@@ -108,7 +108,7 @@ with the following path and query parameters:
|===
-=== Query Parameters (51 parameters):
+=== Query Parameters (52 parameters):
[width="100%",cols="2,5,^1,2",options="header"]
@@ -122,6 +122,7 @@ with the following path and query parameters:
| *clearExpiredCookies* (producer) | Whether to clear expired cookies before
sending the HTTP request. This ensures the cookies store does not keep growing
by adding new cookies which is newer removed when they are expired. | true |
boolean
| *connectionClose* (producer) | Specifies whether a Connection Close header
must be added to HTTP Request. By default connectionClose is false. | false |
boolean
| *copyHeaders* (producer) | If this option is true then IN exchange headers
will be copied to OUT exchange headers according to copy strategy. Setting this
to false, allows to only include the headers from the HTTP response (not
propagating IN headers). | true | boolean
+| *customHostHeader* (producer) | Defines a custom host header which will be
sent when producing http request. When not set in query will be ignored. When
set will override host header derived from url. Default: null | | String
| *httpMethod* (producer) | Configure the HTTP method to use. The HttpMethod
header cannot override this option if set. | | HttpMethods
| *ignoreResponseBody* (producer) | If this option is true, The http producer
won't read response body and cache the input stream | false | boolean
| *lazyStartProducer* (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 [...]
diff --git a/docs/components/modules/ROOT/pages/index.adoc
b/docs/components/modules/ROOT/pages/index.adoc
index 758efe5..379bd9d 100644
--- a/docs/components/modules/ROOT/pages/index.adoc
+++ b/docs/components/modules/ROOT/pages/index.adoc
@@ -776,7 +776,7 @@ Number of Languages: 17 in 11 JAR artifacts (0 deprecated)
== Miscellaneous Components
// others: START
-Number of Miscellaneous Components: 35 in 35 JAR artifacts (0 deprecated)
+Number of Miscellaneous Components: 36 in 36 JAR artifacts (0 deprecated)
[width="100%",cols="4,1,5",options="header"]
|===
@@ -806,7 +806,7 @@ Number of Miscellaneous Components: 35 in 35 JAR artifacts
(0 deprecated)
| xref:microprofile-health.adoc[Microprofile Health]
(camel-microprofile-health) | 3.0 | Bridging Eclipse MicroProfile Health with
Camel health checks
-| xref:openapi-java.adoc[Openapi Java] (camel-openapi-java) | 2.16 | Rest-dsl
support for using openapi doc
+| xref:openapi-java.adoc[Openapi Java] (camel-openapi-java) | 3.1 | Rest-dsl
support for using openapi doc
| xref:opentracing.adoc[OpenTracing] (camel-opentracing) | 2.19 | Distributed
tracing using OpenTracing