This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 9d44d2d camel-http - Should exclude some inherited options that it
does not support/use.
9d44d2d is described below
commit 9d44d2d0579af4f3fb4af4aa81d5d506c2602acc
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Mar 29 14:41:39 2022 +0200
camel-http - Should exclude some inherited options that it does not
support/use.
---
.../org/apache/camel/component/http/HttpEndpointConfigurer.java | 6 ++++++
.../org/apache/camel/component/http/HttpEndpointUriFactory.java | 3 ++-
.../generated/resources/org/apache/camel/component/http/http.json | 1 +
.../generated/resources/org/apache/camel/component/http/https.json | 1 +
.../src/main/java/org/apache/camel/component/http/HttpEndpoint.java | 2 +-
5 files changed, 11 insertions(+), 2 deletions(-)
diff --git
a/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointConfigurer.java
b/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointConfigurer.java
index 43473f5..c3dbf8b 100644
---
a/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointConfigurer.java
+++
b/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointConfigurer.java
@@ -57,6 +57,8 @@ public class HttpEndpointConfigurer extends
PropertyConfigurerSupport implements
case "customHostHeader":
target.setCustomHostHeader(property(camelContext, java.lang.String.class,
value)); return true;
case "deletewithbody":
case "deleteWithBody": target.setDeleteWithBody(property(camelContext,
boolean.class, value)); return true;
+ case "disablestreamcache":
+ case "disableStreamCache":
target.setDisableStreamCache(property(camelContext, boolean.class, value));
return true;
case "getwithbody":
case "getWithBody": target.setGetWithBody(property(camelContext,
boolean.class, value)); return true;
case "headerfilterstrategy":
@@ -158,6 +160,8 @@ public class HttpEndpointConfigurer extends
PropertyConfigurerSupport implements
case "customHostHeader": return java.lang.String.class;
case "deletewithbody":
case "deleteWithBody": return boolean.class;
+ case "disablestreamcache":
+ case "disableStreamCache": return boolean.class;
case "getwithbody":
case "getWithBody": return boolean.class;
case "headerfilterstrategy":
@@ -260,6 +264,8 @@ public class HttpEndpointConfigurer extends
PropertyConfigurerSupport implements
case "customHostHeader": return target.getCustomHostHeader();
case "deletewithbody":
case "deleteWithBody": return target.isDeleteWithBody();
+ case "disablestreamcache":
+ case "disableStreamCache": return target.isDisableStreamCache();
case "getwithbody":
case "getWithBody": return target.isGetWithBody();
case "headerfilterstrategy":
diff --git
a/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointUriFactory.java
b/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointUriFactory.java
index 9dd89a6..ae78420 100644
---
a/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointUriFactory.java
+++
b/components/camel-http/src/generated/java/org/apache/camel/component/http/HttpEndpointUriFactory.java
@@ -22,7 +22,7 @@ public class HttpEndpointUriFactory extends
org.apache.camel.support.component.E
private static final Set<String> SECRET_PROPERTY_NAMES;
private static final Set<String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(48);
+ Set<String> props = new HashSet<>(49);
props.add("authDomain");
props.add("authHost");
props.add("authMethod");
@@ -41,6 +41,7 @@ public class HttpEndpointUriFactory extends
org.apache.camel.support.component.E
props.add("copyHeaders");
props.add("customHostHeader");
props.add("deleteWithBody");
+ props.add("disableStreamCache");
props.add("getWithBody");
props.add("headerFilterStrategy");
props.add("httpClient");
diff --git
a/components/camel-http/src/generated/resources/org/apache/camel/component/http/http.json
b/components/camel-http/src/generated/resources/org/apache/camel/component/http/http.json
index 925c1cd..ea1be0b 100644
---
a/components/camel-http/src/generated/resources/org/apache/camel/component/http/http.json
+++
b/components/camel-http/src/generated/resources/org/apache/camel/component/http/http.json
@@ -65,6 +65,7 @@
},
"properties": {
"httpUri": { "kind": "path", "displayName": "Http Uri", "group": "common",
"label": "common", "required": true, "type": "string", "javaType":
"java.net.URI", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The url of the HTTP endpoint to call." },
+ "disableStreamCache": { "kind": "parameter", "displayName": "Disable
Stream Cache", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "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, Stream caching) cache. By default
Camel will cache the Servlet inpu [...]
"headerFilterStrategy": { "kind": "parameter", "displayName": "Header
Filter Strategy", "group": "common", "label": "common", "required": false,
"type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy",
"deprecated": false, "autowired": false, "secret": false, "description": "To
use a custom HeaderFilterStrategy to filter header to and from Camel message."
},
"bridgeEndpoint": { "kind": "parameter", "displayName": "Bridge Endpoint",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If the option is true,
HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's
URI for request. You may also set the option throwExceptionOnFailure to be
false to let the HttpProducer send al [...]
"clearExpiredCookies": { "kind": "parameter", "displayName": "Clear
Expired Cookies", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "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 [...]
diff --git
a/components/camel-http/src/generated/resources/org/apache/camel/component/http/https.json
b/components/camel-http/src/generated/resources/org/apache/camel/component/http/https.json
index 24f3de2..2cb8ab5 100644
---
a/components/camel-http/src/generated/resources/org/apache/camel/component/http/https.json
+++
b/components/camel-http/src/generated/resources/org/apache/camel/component/http/https.json
@@ -65,6 +65,7 @@
},
"properties": {
"httpUri": { "kind": "path", "displayName": "Http Uri", "group": "common",
"label": "common", "required": true, "type": "string", "javaType":
"java.net.URI", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The url of the HTTP endpoint to call." },
+ "disableStreamCache": { "kind": "parameter", "displayName": "Disable
Stream Cache", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "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, Stream caching) cache. By default
Camel will cache the Servlet inpu [...]
"headerFilterStrategy": { "kind": "parameter", "displayName": "Header
Filter Strategy", "group": "common", "label": "common", "required": false,
"type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy",
"deprecated": false, "autowired": false, "secret": false, "description": "To
use a custom HeaderFilterStrategy to filter header to and from Camel message."
},
"bridgeEndpoint": { "kind": "parameter", "displayName": "Bridge Endpoint",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If the option is true,
HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's
URI for request. You may also set the option throwExceptionOnFailure to be
false to let the HttpProducer send al [...]
"clearExpiredCookies": { "kind": "parameter", "displayName": "Clear
Expired Cookies", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "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 [...]
diff --git
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
index 587bfd3..b1137f8 100644
---
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
+++
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
@@ -58,7 +58,7 @@ import org.slf4j.LoggerFactory;
*/
@UriEndpoint(firstVersion = "2.3.0", scheme = "http,https", title =
"HTTP,HTTPS", syntax = "http://httpUri",
producerOnly = true, category = { Category.HTTP },
lenientProperties = true)
-@Metadata(excludeProperties =
"httpBinding,matchOnUriPrefix,chunked,disableStreamCache,transferException")
+@Metadata(excludeProperties =
"httpBinding,matchOnUriPrefix,chunked,transferException")
@ManagedResource(description = "Managed HttpEndpoint")
public class HttpEndpoint extends HttpCommonEndpoint {