This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new a402137c84e Regen for commit fd7be4ff35d3ac721c4583e6b9874f8611ca8d51
a402137c84e is described below
commit a402137c84e07d288a2ea2fc4e8b7b982f394468
Author: oscerd <[email protected]>
AuthorDate: Thu Dec 29 08:47:00 2022 +0000
Regen for commit fd7be4ff35d3ac721c4583e6b9874f8611ca8d51
Signed-off-by: GitHub <[email protected]>
---
.../AtmosphereWebsocketEndpointBuilderFactory.java | 216 ++++++-------
.../dsl/JettyHttpEndpointBuilderFactory.java | 132 ++++----
.../dsl/ResteasyEndpointBuilderFactory.java | 356 +++++++++++----------
.../dsl/ServletEndpointBuilderFactory.java | 208 ++++++------
4 files changed, 457 insertions(+), 455 deletions(-)
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java
index 64690e9b0dc..5ea3118d96e 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java
@@ -141,42 +141,6 @@ public interface AtmosphereWebsocketEndpointBuilderFactory
{
doSetProperty("disableStreamCache", disableStreamCache);
return this;
}
- /**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
- *
- * The option is a:
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
- *
- * Group: common
- *
- * @param headerFilterStrategy the value to set
- * @return the dsl builder
- */
- default AtmosphereWebsocketEndpointConsumerBuilder
headerFilterStrategy(
- org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
- return this;
- }
- /**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
- *
- * The option will be converted to a
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
- *
- * Group: common
- *
- * @param headerFilterStrategy the value to set
- * @return the dsl builder
- */
- default AtmosphereWebsocketEndpointConsumerBuilder
headerFilterStrategy(
- String headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
- return this;
- }
/**
* Whether to send to all (broadcast) or send to a single receiver.
*
@@ -469,6 +433,42 @@ public interface AtmosphereWebsocketEndpointBuilderFactory
{
default AtmosphereWebsocketEndpointConsumerBuilder basic() {
return (AtmosphereWebsocketEndpointConsumerBuilder) this;
}
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option is a:
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedAtmosphereWebsocketEndpointConsumerBuilder
headerFilterStrategy(
+ org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option will be converted to a
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedAtmosphereWebsocketEndpointConsumerBuilder
headerFilterStrategy(
+ String headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
/**
* To use a custom HttpBinding to control the mapping between Camel
* message and HttpClient.
@@ -1007,42 +1007,6 @@ public interface
AtmosphereWebsocketEndpointBuilderFactory {
doSetProperty("disableStreamCache", disableStreamCache);
return this;
}
- /**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
- *
- * The option is a:
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
- *
- * Group: common
- *
- * @param headerFilterStrategy the value to set
- * @return the dsl builder
- */
- default AtmosphereWebsocketEndpointProducerBuilder
headerFilterStrategy(
- org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
- return this;
- }
- /**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
- *
- * The option will be converted to a
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
- *
- * Group: common
- *
- * @param headerFilterStrategy the value to set
- * @return the dsl builder
- */
- default AtmosphereWebsocketEndpointProducerBuilder
headerFilterStrategy(
- String headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
- return this;
- }
/**
* Whether to send to all (broadcast) or send to a single receiver.
*
@@ -1209,6 +1173,42 @@ public interface
AtmosphereWebsocketEndpointBuilderFactory {
default AtmosphereWebsocketEndpointProducerBuilder basic() {
return (AtmosphereWebsocketEndpointProducerBuilder) this;
}
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option is a:
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedAtmosphereWebsocketEndpointProducerBuilder
headerFilterStrategy(
+ org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option will be converted to a
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedAtmosphereWebsocketEndpointProducerBuilder
headerFilterStrategy(
+ String headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
/**
* To use a custom HttpBinding to control the mapping between Camel
* message and HttpClient.
@@ -1402,42 +1402,6 @@ public interface
AtmosphereWebsocketEndpointBuilderFactory {
doSetProperty("disableStreamCache", disableStreamCache);
return this;
}
- /**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
- *
- * The option is a:
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
- *
- * Group: common
- *
- * @param headerFilterStrategy the value to set
- * @return the dsl builder
- */
- default AtmosphereWebsocketEndpointBuilder headerFilterStrategy(
- org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
- return this;
- }
- /**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
- *
- * The option will be converted to a
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
- *
- * Group: common
- *
- * @param headerFilterStrategy the value to set
- * @return the dsl builder
- */
- default AtmosphereWebsocketEndpointBuilder headerFilterStrategy(
- String headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
- return this;
- }
/**
* Whether to send to all (broadcast) or send to a single receiver.
*
@@ -1563,6 +1527,42 @@ public interface
AtmosphereWebsocketEndpointBuilderFactory {
default AtmosphereWebsocketEndpointBuilder basic() {
return (AtmosphereWebsocketEndpointBuilder) this;
}
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option is a:
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedAtmosphereWebsocketEndpointBuilder
headerFilterStrategy(
+ org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option will be converted to a
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedAtmosphereWebsocketEndpointBuilder
headerFilterStrategy(
+ String headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
/**
* To use a custom HttpBinding to control the mapping between Camel
* message and HttpClient.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttpEndpointBuilderFactory.java
index e1b7e383048..49a094187f3 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttpEndpointBuilderFactory.java
@@ -139,39 +139,52 @@ public interface JettyHttpEndpointBuilderFactory {
return this;
}
/**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
+ * If enabled and an Exchange failed processing on the consumer side,
+ * and if the caused Exception was send back serialized in the response
+ * as a application/x-java-serialized-object content type. On the
+ * producer side the exception will be deserialized and thrown as is,
+ * instead of the HttpOperationFailedException. The caused exception is
+ * required to be serialized. This is by default turned off. If you
+ * enable this then be aware that Java will deserialize the incoming
+ * data from the request to Java and that can be a potential security
+ * risk.
*
- * The option is a:
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
- * type.
+ * The option is a: <code>boolean</code> type.
*
+ * Default: false
* Group: common
*
- * @param headerFilterStrategy the value to set
+ * @param transferException the value to set
* @return the dsl builder
*/
- default JettyHttpEndpointBuilder headerFilterStrategy(
- org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ default JettyHttpEndpointBuilder transferException(
+ boolean transferException) {
+ doSetProperty("transferException", transferException);
return this;
}
/**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
+ * If enabled and an Exchange failed processing on the consumer side,
+ * and if the caused Exception was send back serialized in the response
+ * as a application/x-java-serialized-object content type. On the
+ * producer side the exception will be deserialized and thrown as is,
+ * instead of the HttpOperationFailedException. The caused exception is
+ * required to be serialized. This is by default turned off. If you
+ * enable this then be aware that Java will deserialize the incoming
+ * data from the request to Java and that can be a potential security
+ * risk.
*
- * The option will be converted to a
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * The option will be converted to a <code>boolean</code>
* type.
*
+ * Default: false
* Group: common
*
- * @param headerFilterStrategy the value to set
+ * @param transferException the value to set
* @return the dsl builder
*/
- default JettyHttpEndpointBuilder headerFilterStrategy(
- String headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ default JettyHttpEndpointBuilder transferException(
+ String transferException) {
+ doSetProperty("transferException", transferException);
return this;
}
/**
@@ -576,55 +589,6 @@ public interface JettyHttpEndpointBuilderFactory {
doSetProperty("sessionSupport", sessionSupport);
return this;
}
- /**
- * If enabled and an Exchange failed processing on the consumer side,
- * and if the caused Exception was send back serialized in the response
- * as a application/x-java-serialized-object content type. On the
- * producer side the exception will be deserialized and thrown as is,
- * instead of the HttpOperationFailedException. The caused exception is
- * required to be serialized. This is by default turned off. If you
- * enable this then be aware that Java will deserialize the incoming
- * data from the request to Java and that can be a potential security
- * risk.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: consumer
- *
- * @param transferException the value to set
- * @return the dsl builder
- */
- default JettyHttpEndpointBuilder transferException(
- boolean transferException) {
- doSetProperty("transferException", transferException);
- return this;
- }
- /**
- * If enabled and an Exchange failed processing on the consumer side,
- * and if the caused Exception was send back serialized in the response
- * as a application/x-java-serialized-object content type. On the
- * producer side the exception will be deserialized and thrown as is,
- * instead of the HttpOperationFailedException. The caused exception is
- * required to be serialized. This is by default turned off. If you
- * enable this then be aware that Java will deserialize the incoming
- * data from the request to Java and that can be a potential security
- * risk.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: false
- * Group: consumer
- *
- * @param transferException the value to set
- * @return the dsl builder
- */
- default JettyHttpEndpointBuilder transferException(
- String transferException) {
- doSetProperty("transferException", transferException);
- return this;
- }
/**
* Whether or not to use Jetty continuations for the Jetty Server.
*
@@ -697,6 +661,42 @@ public interface JettyHttpEndpointBuilderFactory {
default JettyHttpEndpointBuilder basic() {
return (JettyHttpEndpointBuilder) this;
}
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option is a:
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedJettyHttpEndpointBuilder headerFilterStrategy(
+ org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
+ /**
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
+ *
+ * The option will be converted to a
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
+ *
+ * Group: common (advanced)
+ *
+ * @param headerFilterStrategy the value to set
+ * @return the dsl builder
+ */
+ default AdvancedJettyHttpEndpointBuilder headerFilterStrategy(
+ String headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ return this;
+ }
/**
* To use a custom HttpBinding to control the mapping between Camel
* message and HttpClient.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java
index 9dc940dda4c..d5bc7009fd9 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java
@@ -917,47 +917,6 @@ public interface ResteasyEndpointBuilderFactory {
doSetProperty("bridgeEndpoint", bridgeEndpoint);
return this;
}
- /**
- * 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. If the
- * component has disabled cookie management then this option is
disabled
- * too.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: producer
- *
- * @param clearExpiredCookies the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder clearExpiredCookies(
- boolean clearExpiredCookies) {
- doSetProperty("clearExpiredCookies", clearExpiredCookies);
- return this;
- }
- /**
- * 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. If the
- * component has disabled cookie management then this option is
disabled
- * too.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: true
- * Group: producer
- *
- * @param clearExpiredCookies the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder clearExpiredCookies(
- String clearExpiredCookies) {
- doSetProperty("clearExpiredCookies", clearExpiredCookies);
- return this;
- }
/**
* Specifies whether a Connection Close header must be added to HTTP
* Request. By default connectionClose is false.
@@ -994,56 +953,38 @@ public interface ResteasyEndpointBuilderFactory {
return this;
}
/**
- * 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).
+ * Whether to the HTTP request should follow redirects. By default the
+ * HTTP request does not follow redirects.
*
* The option is a: <code>boolean</code> type.
*
- * Default: true
+ * Default: false
* Group: producer
*
- * @param copyHeaders the value to set
+ * @param followRedirects the value to set
* @return the dsl builder
*/
- default ResteasyEndpointProducerBuilder copyHeaders(boolean
copyHeaders) {
- doSetProperty("copyHeaders", copyHeaders);
+ default ResteasyEndpointProducerBuilder followRedirects(
+ boolean followRedirects) {
+ doSetProperty("followRedirects", followRedirects);
return this;
}
/**
- * 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).
+ * Whether to the HTTP request should follow redirects. By default the
+ * HTTP request does not follow redirects.
*
* The option will be converted to a <code>boolean</code>
* type.
*
- * Default: true
- * Group: producer
- *
- * @param copyHeaders the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder copyHeaders(String
copyHeaders) {
- doSetProperty("copyHeaders", copyHeaders);
- return this;
- }
- /**
- * To use custom host header for producer. When not set in query will
be
- * ignored. When set will override host header derived from url.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
+ * Default: false
* Group: producer
*
- * @param customHostHeader the value to set
+ * @param followRedirects the value to set
* @return the dsl builder
*/
- default ResteasyEndpointProducerBuilder customHostHeader(
- String customHostHeader) {
- doSetProperty("customHostHeader", customHostHeader);
+ default ResteasyEndpointProducerBuilder followRedirects(
+ String followRedirects) {
+ doSetProperty("followRedirects", followRedirects);
return this;
}
/**
@@ -1081,84 +1022,6 @@ public interface ResteasyEndpointBuilderFactory {
doSetProperty("httpMethod", httpMethod);
return this;
}
- /**
- * If this option is true, The http producer won't read response body
- * and cache the input stream.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param ignoreResponseBody the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder ignoreResponseBody(
- boolean ignoreResponseBody) {
- doSetProperty("ignoreResponseBody", ignoreResponseBody);
- return this;
- }
- /**
- * If this option is true, The http producer won't read response body
- * and cache the input stream.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: false
- * Group: producer
- *
- * @param ignoreResponseBody the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder ignoreResponseBody(
- String ignoreResponseBody) {
- doSetProperty("ignoreResponseBody", ignoreResponseBody);
- return this;
- }
- /**
- * If the option is true, HttpProducer will set the Host header to the
- * value contained in the current exchange Host header, useful in
- * reverse proxy applications where you want the Host header received
by
- * the downstream server to reflect the URL called by the upstream
- * client, this allows applications which use the Host header to
- * generate accurate URL's for a proxied service.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param preserveHostHeader the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder preserveHostHeader(
- boolean preserveHostHeader) {
- doSetProperty("preserveHostHeader", preserveHostHeader);
- return this;
- }
- /**
- * If the option is true, HttpProducer will set the Host header to the
- * value contained in the current exchange Host header, useful in
- * reverse proxy applications where you want the Host header received
by
- * the downstream server to reflect the URL called by the upstream
- * client, this allows applications which use the Host header to
- * generate accurate URL's for a proxied service.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: false
- * Group: producer
- *
- * @param preserveHostHeader the value to set
- * @return the dsl builder
- */
- default ResteasyEndpointProducerBuilder preserveHostHeader(
- String preserveHostHeader) {
- doSetProperty("preserveHostHeader", preserveHostHeader);
- return this;
- }
/**
* Option to disable throwing the HttpOperationFailedException in case
* of failed responses from the remote server. This allows you to get
@@ -1250,6 +1113,47 @@ public interface ResteasyEndpointBuilderFactory {
default ResteasyEndpointProducerBuilder basic() {
return (ResteasyEndpointProducerBuilder) this;
}
+ /**
+ * 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. If the
+ * component has disabled cookie management then this option is
disabled
+ * too.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer (advanced)
+ *
+ * @param clearExpiredCookies the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder clearExpiredCookies(
+ boolean clearExpiredCookies) {
+ doSetProperty("clearExpiredCookies", clearExpiredCookies);
+ return this;
+ }
+ /**
+ * 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. If the
+ * component has disabled cookie management then this option is
disabled
+ * too.
+ *
+ * The option will be converted to a <code>boolean</code>
+ * type.
+ *
+ * Default: true
+ * Group: producer (advanced)
+ *
+ * @param clearExpiredCookies the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder clearExpiredCookies(
+ String clearExpiredCookies) {
+ doSetProperty("clearExpiredCookies", clearExpiredCookies);
+ return this;
+ }
/**
* Configure a cookie handler to maintain a HTTP session.
*
@@ -1282,6 +1186,61 @@ public interface ResteasyEndpointBuilderFactory {
doSetProperty("cookieHandler", cookieHandler);
return this;
}
+ /**
+ * 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).
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: producer (advanced)
+ *
+ * @param copyHeaders the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder copyHeaders(
+ boolean copyHeaders) {
+ doSetProperty("copyHeaders", copyHeaders);
+ return this;
+ }
+ /**
+ * 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).
+ *
+ * The option will be converted to a <code>boolean</code>
+ * type.
+ *
+ * Default: true
+ * Group: producer (advanced)
+ *
+ * @param copyHeaders the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder copyHeaders(
+ String copyHeaders) {
+ doSetProperty("copyHeaders", copyHeaders);
+ return this;
+ }
+ /**
+ * To use custom host header for producer. When not set in query will
be
+ * ignored. When set will override host header derived from url.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer (advanced)
+ *
+ * @param customHostHeader the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder customHostHeader(
+ String customHostHeader) {
+ doSetProperty("customHostHeader", customHostHeader);
+ return this;
+ }
/**
* Whether the HTTP DELETE should include the message body or not. By
* default HTTP DELETE do not include any HTTP body. However in some
@@ -1320,25 +1279,27 @@ public interface ResteasyEndpointBuilderFactory {
return this;
}
/**
- * Whether to the HTTP request should follow redirects. By default the
- * HTTP request does not follow redirects.
+ * 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.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: producer (advanced)
*
- * @param followRedirects the value to set
+ * @param getWithBody the value to set
* @return the dsl builder
*/
- default AdvancedResteasyEndpointProducerBuilder followRedirects(
- boolean followRedirects) {
- doSetProperty("followRedirects", followRedirects);
+ default AdvancedResteasyEndpointProducerBuilder getWithBody(
+ boolean getWithBody) {
+ doSetProperty("getWithBody", getWithBody);
return this;
}
/**
- * Whether to the HTTP request should follow redirects. By default the
- * HTTP request does not follow redirects.
+ * 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.
*
* The option will be converted to a <code>boolean</code>
* type.
@@ -1346,36 +1307,34 @@ public interface ResteasyEndpointBuilderFactory {
* Default: false
* Group: producer (advanced)
*
- * @param followRedirects the value to set
+ * @param getWithBody the value to set
* @return the dsl builder
*/
- default AdvancedResteasyEndpointProducerBuilder followRedirects(
- String followRedirects) {
- doSetProperty("followRedirects", followRedirects);
+ default AdvancedResteasyEndpointProducerBuilder getWithBody(
+ String getWithBody) {
+ doSetProperty("getWithBody", getWithBody);
return this;
}
/**
- * 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.
+ * If this option is true, The http producer won't read response body
+ * and cache the input stream.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: producer (advanced)
*
- * @param getWithBody the value to set
+ * @param ignoreResponseBody the value to set
* @return the dsl builder
*/
- default AdvancedResteasyEndpointProducerBuilder getWithBody(
- boolean getWithBody) {
- doSetProperty("getWithBody", getWithBody);
+ default AdvancedResteasyEndpointProducerBuilder ignoreResponseBody(
+ boolean ignoreResponseBody) {
+ doSetProperty("ignoreResponseBody", ignoreResponseBody);
return this;
}
/**
- * 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.
+ * If this option is true, The http producer won't read response body
+ * and cache the input stream.
*
* The option will be converted to a <code>boolean</code>
* type.
@@ -1383,12 +1342,12 @@ public interface ResteasyEndpointBuilderFactory {
* Default: false
* Group: producer (advanced)
*
- * @param getWithBody the value to set
+ * @param ignoreResponseBody the value to set
* @return the dsl builder
*/
- default AdvancedResteasyEndpointProducerBuilder getWithBody(
- String getWithBody) {
- doSetProperty("getWithBody", getWithBody);
+ default AdvancedResteasyEndpointProducerBuilder ignoreResponseBody(
+ String ignoreResponseBody) {
+ doSetProperty("ignoreResponseBody", ignoreResponseBody);
return this;
}
/**
@@ -1459,6 +1418,49 @@ public interface ResteasyEndpointBuilderFactory {
doSetProperty("okStatusCodeRange", okStatusCodeRange);
return this;
}
+ /**
+ * If the option is true, HttpProducer will set the Host header to the
+ * value contained in the current exchange Host header, useful in
+ * reverse proxy applications where you want the Host header received
by
+ * the downstream server to reflect the URL called by the upstream
+ * client, this allows applications which use the Host header to
+ * generate accurate URL's for a proxied service.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: producer (advanced)
+ *
+ * @param preserveHostHeader the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder preserveHostHeader(
+ boolean preserveHostHeader) {
+ doSetProperty("preserveHostHeader", preserveHostHeader);
+ return this;
+ }
+ /**
+ * If the option is true, HttpProducer will set the Host header to the
+ * value contained in the current exchange Host header, useful in
+ * reverse proxy applications where you want the Host header received
by
+ * the downstream server to reflect the URL called by the upstream
+ * client, this allows applications which use the Host header to
+ * generate accurate URL's for a proxied service.
+ *
+ * The option will be converted to a <code>boolean</code>
+ * type.
+ *
+ * Default: false
+ * Group: producer (advanced)
+ *
+ * @param preserveHostHeader the value to set
+ * @return the dsl builder
+ */
+ default AdvancedResteasyEndpointProducerBuilder preserveHostHeader(
+ String preserveHostHeader) {
+ doSetProperty("preserveHostHeader", preserveHostHeader);
+ return this;
+ }
/**
* Whether to skip mapping all the Camel headers as HTTP request
* headers. If there are no data from Camel headers needed to be
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java
index f8332f3ee97..de1ba51bcde 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java
@@ -41,39 +41,6 @@ public interface ServletEndpointBuilderFactory {
default AdvancedServletEndpointBuilder advanced() {
return (AdvancedServletEndpointBuilder) this;
}
- /**
- * If this option is false the Servlet will disable the HTTP streaming
- * and set the content-length header on the response.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: consumer
- *
- * @param chunked the value to set
- * @return the dsl builder
- */
- default ServletEndpointBuilder chunked(boolean chunked) {
- doSetProperty("chunked", chunked);
- return this;
- }
- /**
- * If this option is false the Servlet will disable the HTTP streaming
- * and set the content-length header on the response.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: true
- * Group: consumer
- *
- * @param chunked the value to set
- * @return the dsl builder
- */
- default ServletEndpointBuilder chunked(String chunked) {
- doSetProperty("chunked", chunked);
- return this;
- }
/**
* Determines whether or not the raw input stream from Servlet is
cached
* or not (Camel will read the stream into a in memory/overflow to
file,
@@ -138,70 +105,116 @@ public interface ServletEndpointBuilderFactory {
return this;
}
/**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
+ * Configure the consumer to work in async mode.
*
- * The option is a:
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: consumer
+ *
+ * @param async the value to set
+ * @return the dsl builder
+ */
+ default ServletEndpointBuilder async(boolean async) {
+ doSetProperty("async", async);
+ return this;
+ }
+ /**
+ * Configure the consumer to work in async mode.
+ *
+ * The option will be converted to a <code>boolean</code>
* type.
*
- * Group: common
+ * Default: false
+ * Group: consumer
*
- * @param headerFilterStrategy the value to set
+ * @param async the value to set
* @return the dsl builder
*/
- default ServletEndpointBuilder headerFilterStrategy(
- org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ default ServletEndpointBuilder async(String async) {
+ doSetProperty("async", async);
return this;
}
/**
- * To use a custom HeaderFilterStrategy to filter header to and from
- * Camel message.
+ * If this option is false the Servlet will disable the HTTP streaming
+ * and set the content-length header on the response.
*
- * The option will be converted to a
- * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: true
+ * Group: consumer
+ *
+ * @param chunked the value to set
+ * @return the dsl builder
+ */
+ default ServletEndpointBuilder chunked(boolean chunked) {
+ doSetProperty("chunked", chunked);
+ return this;
+ }
+ /**
+ * If this option is false the Servlet will disable the HTTP streaming
+ * and set the content-length header on the response.
+ *
+ * The option will be converted to a <code>boolean</code>
* type.
*
- * Group: common
+ * Default: true
+ * Group: consumer
*
- * @param headerFilterStrategy the value to set
+ * @param chunked the value to set
* @return the dsl builder
*/
- default ServletEndpointBuilder headerFilterStrategy(
- String headerFilterStrategy) {
- doSetProperty("headerFilterStrategy", headerFilterStrategy);
+ default ServletEndpointBuilder chunked(String chunked) {
+ doSetProperty("chunked", chunked);
return this;
}
/**
- * Configure the consumer to work in async mode.
+ * If enabled and an Exchange failed processing on the consumer side,
+ * and if the caused Exception was send back serialized in the response
+ * as a application/x-java-serialized-object content type. On the
+ * producer side the exception will be deserialized and thrown as is,
+ * instead of the HttpOperationFailedException. The caused exception is
+ * required to be serialized. This is by default turned off. If you
+ * enable this then be aware that Java will deserialize the incoming
+ * data from the request to Java and that can be a potential security
+ * risk.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
- * Group: consumer
+ * Group: common
*
- * @param async the value to set
+ * @param transferException the value to set
* @return the dsl builder
*/
- default ServletEndpointBuilder async(boolean async) {
- doSetProperty("async", async);
+ default ServletEndpointBuilder transferException(
+ boolean transferException) {
+ doSetProperty("transferException", transferException);
return this;
}
/**
- * Configure the consumer to work in async mode.
+ * If enabled and an Exchange failed processing on the consumer side,
+ * and if the caused Exception was send back serialized in the response
+ * as a application/x-java-serialized-object content type. On the
+ * producer side the exception will be deserialized and thrown as is,
+ * instead of the HttpOperationFailedException. The caused exception is
+ * required to be serialized. This is by default turned off. If you
+ * enable this then be aware that Java will deserialize the incoming
+ * data from the request to Java and that can be a potential security
+ * risk.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
- * Group: consumer
+ * Group: common
*
- * @param async the value to set
+ * @param transferException the value to set
* @return the dsl builder
*/
- default ServletEndpointBuilder async(String async) {
- doSetProperty("async", async);
+ default ServletEndpointBuilder transferException(
+ String transferException) {
+ doSetProperty("transferException", transferException);
return this;
}
/**
@@ -333,66 +346,53 @@ public interface ServletEndpointBuilderFactory {
doSetProperty("servletName", servletName);
return this;
}
+ }
+
+ /**
+ * Advanced builder for endpoint for the Servlet component.
+ */
+ public interface AdvancedServletEndpointBuilder
+ extends
+ EndpointConsumerBuilder {
+ default ServletEndpointBuilder basic() {
+ return (ServletEndpointBuilder) this;
+ }
/**
- * If enabled and an Exchange failed processing on the consumer side,
- * and if the caused Exception was send back serialized in the response
- * as a application/x-java-serialized-object content type. On the
- * producer side the exception will be deserialized and thrown as is,
- * instead of the HttpOperationFailedException. The caused exception is
- * required to be serialized. This is by default turned off. If you
- * enable this then be aware that Java will deserialize the incoming
- * data from the request to Java and that can be a potential security
- * risk.
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
*
- * The option is a: <code>boolean</code> type.
+ * The option is a:
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
+ * type.
*
- * Default: false
- * Group: consumer
+ * Group: common (advanced)
*
- * @param transferException the value to set
+ * @param headerFilterStrategy the value to set
* @return the dsl builder
*/
- default ServletEndpointBuilder transferException(
- boolean transferException) {
- doSetProperty("transferException", transferException);
+ default AdvancedServletEndpointBuilder headerFilterStrategy(
+ org.apache.camel.spi.HeaderFilterStrategy
headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
return this;
}
/**
- * If enabled and an Exchange failed processing on the consumer side,
- * and if the caused Exception was send back serialized in the response
- * as a application/x-java-serialized-object content type. On the
- * producer side the exception will be deserialized and thrown as is,
- * instead of the HttpOperationFailedException. The caused exception is
- * required to be serialized. This is by default turned off. If you
- * enable this then be aware that Java will deserialize the incoming
- * data from the request to Java and that can be a potential security
- * risk.
+ * To use a custom HeaderFilterStrategy to filter header to and from
+ * Camel message.
*
- * The option will be converted to a <code>boolean</code>
+ * The option will be converted to a
+ * <code>org.apache.camel.spi.HeaderFilterStrategy</code>
* type.
*
- * Default: false
- * Group: consumer
+ * Group: common (advanced)
*
- * @param transferException the value to set
+ * @param headerFilterStrategy the value to set
* @return the dsl builder
*/
- default ServletEndpointBuilder transferException(
- String transferException) {
- doSetProperty("transferException", transferException);
+ default AdvancedServletEndpointBuilder headerFilterStrategy(
+ String headerFilterStrategy) {
+ doSetProperty("headerFilterStrategy", headerFilterStrategy);
return this;
}
- }
-
- /**
- * Advanced builder for endpoint for the Servlet component.
- */
- public interface AdvancedServletEndpointBuilder
- extends
- EndpointConsumerBuilder {
- default ServletEndpointBuilder basic() {
- return (ServletEndpointBuilder) this;
- }
/**
* To use a custom HttpBinding to control the mapping between Camel
* message and HttpClient.