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-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new 36cdb1d [create-pull-request] automated change 36cdb1d is described below commit 36cdb1d3d96d48ccc938fa8dd0327f33415febe2 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Sat Nov 6 00:58:43 2021 +0000 [create-pull-request] automated change --- .../springboot/catalog/components/atmosphere-websocket.json | 1 + .../apache/camel/springboot/catalog/components/jetty.json | 1 + .../src/main/docs/atmosphere-websocket.json | 7 +++++++ .../springboot/WebsocketComponentConfiguration.java | 13 +++++++++++++ .../camel-jetty-starter/src/main/docs/jetty.json | 7 +++++++ .../jetty9/springboot/JettyHttpComponentConfiguration9.java | 13 +++++++++++++ .../spring-boot/examples/json/atmosphere-websocket.json | 7 +++++++ .../components/modules/spring-boot/examples/json/jetty.json | 7 +++++++ 8 files changed, 56 insertions(+) diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/atmosphere-websocket.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/atmosphere-websocket.json index 7696d20..9a31b67 100644 --- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/atmosphere-websocket.json +++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/atmosphere-websocket.json @@ -24,6 +24,7 @@ }, "componentProperties": { "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a me [...] + "muteException": { "kind": "property", "displayName": "Mute Exception", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace." }, "servletName": { "kind": "property", "displayName": "Servlet Name", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CamelServlet", "description": "Default name of servlet to use. The default name is CamelServlet." }, "attachmentMultipartBinding": { "kind": "property", "displayName": "Attachment Multipart Binding", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to automatic bind multipart\/form-data as attachments on the Camel Exchange. The options attachmentMultipartBinding=true and disableStreamCache=false cannot work [...] "fileNameExtWhitelist": { "kind": "property", "displayName": "File Name Ext Whitelist", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Whitelist of accepted filename extensions for accepting uploaded files. Multiple extensions can be separated by comma, such as txt,xml." }, diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jetty.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jetty.json index 3f57280..841bde1 100644 --- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jetty.json +++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jetty.json @@ -28,6 +28,7 @@ "enableJmx": { "kind": "property", "displayName": "Enable Jmx", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": false, "description": "If this option is true, Jetty JMX support will be enabled for this endpoint." }, "maxThreads": { "kind": "property", "displayName": "Max Threads", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "To set a value for maximum number of threads in server thread pool. Notice that both a min and max size must be configured." }, "minThreads": { "kind": "property", "displayName": "Min Threads", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "To set a value for minimum number of threads in server thread pool. Notice that both a min and max size must be configured." }, + "muteException": { "kind": "property", "displayName": "Mute Exception", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace." }, "requestBufferSize": { "kind": "property", "displayName": "Request Buffer Size", "group": "consumer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Allows to configure a custom value of the request buffer size on the Jetty connectors." }, "requestHeaderSize": { "kind": "property", "displayName": "Request Header Size", "group": "consumer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Allows to configure a custom value of the request header size on the Jetty connectors." }, "responseBufferSize": { "kind": "property", "displayName": "Response Buffer Size", "group": "consumer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Allows to configure a custom value of the response buffer size on the Jetty connectors." }, diff --git a/components-starter/camel-atmosphere-websocket-starter/src/main/docs/atmosphere-websocket.json b/components-starter/camel-atmosphere-websocket-starter/src/main/docs/atmosphere-websocket.json index 744a897..dd2277a 100644 --- a/components-starter/camel-atmosphere-websocket-starter/src/main/docs/atmosphere-websocket.json +++ b/components-starter/camel-atmosphere-websocket-starter/src/main/docs/atmosphere-websocket.json @@ -90,6 +90,13 @@ "defaultValue": false }, { + "name": "camel.component.atmosphere-websocket.mute-exception", + "type": "java.lang.Boolean", + "description": "If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.", + "sourceType": "org.apache.camel.component.atmosphere.websocket.springboot.WebsocketComponentConfiguration", + "defaultValue": false + }, + { "name": "camel.component.atmosphere-websocket.servlet-name", "type": "java.lang.String", "description": "Default name of servlet to use. The default name is CamelServlet.", diff --git a/components-starter/camel-atmosphere-websocket-starter/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java b/components-starter/camel-atmosphere-websocket-starter/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java index 5fa8ffb..b326d64 100644 --- a/components-starter/camel-atmosphere-websocket-starter/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java +++ b/components-starter/camel-atmosphere-websocket-starter/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java @@ -50,6 +50,11 @@ public class WebsocketComponentConfiguration */ private Boolean bridgeErrorHandler = false; /** + * If enabled and an Exchange failed processing on the consumer side the + * response's body won't contain the exception's stack trace. + */ + private Boolean muteException = false; + /** * Default name of servlet to use. The default name is CamelServlet. */ private String servletName = "CamelServlet"; @@ -126,6 +131,14 @@ public class WebsocketComponentConfiguration this.bridgeErrorHandler = bridgeErrorHandler; } + public Boolean getMuteException() { + return muteException; + } + + public void setMuteException(Boolean muteException) { + this.muteException = muteException; + } + public String getServletName() { return servletName; } diff --git a/components-starter/camel-jetty-starter/src/main/docs/jetty.json b/components-starter/camel-jetty-starter/src/main/docs/jetty.json index 7eb421c..3a6ce46 100644 --- a/components-starter/camel-jetty-starter/src/main/docs/jetty.json +++ b/components-starter/camel-jetty-starter/src/main/docs/jetty.json @@ -114,6 +114,13 @@ "sourceType": "org.apache.camel.component.jetty9.springboot.JettyHttpComponentConfiguration9" }, { + "name": "camel.component.jetty.mute-exception", + "type": "java.lang.Boolean", + "description": "If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.", + "sourceType": "org.apache.camel.component.jetty9.springboot.JettyHttpComponentConfiguration9", + "defaultValue": false + }, + { "name": "camel.component.jetty.proxy-host", "type": "java.lang.String", "description": "To use a http proxy to configure the hostname.", diff --git a/components-starter/camel-jetty-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java b/components-starter/camel-jetty-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java index b62bec2..725b151 100644 --- a/components-starter/camel-jetty-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java +++ b/components-starter/camel-jetty-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java @@ -79,6 +79,11 @@ public class JettyHttpComponentConfiguration9 */ private Integer minThreads; /** + * If enabled and an Exchange failed processing on the consumer side the + * response's body won't contain the exception's stack trace. + */ + private Boolean muteException = false; + /** * Allows to configure a custom value of the request buffer size on the * Jetty connectors. */ @@ -262,6 +267,14 @@ public class JettyHttpComponentConfiguration9 this.minThreads = minThreads; } + public Boolean getMuteException() { + return muteException; + } + + public void setMuteException(Boolean muteException) { + this.muteException = muteException; + } + public Integer getRequestBufferSize() { return requestBufferSize; } diff --git a/docs/components/modules/spring-boot/examples/json/atmosphere-websocket.json b/docs/components/modules/spring-boot/examples/json/atmosphere-websocket.json index 744a897..dd2277a 100644 --- a/docs/components/modules/spring-boot/examples/json/atmosphere-websocket.json +++ b/docs/components/modules/spring-boot/examples/json/atmosphere-websocket.json @@ -90,6 +90,13 @@ "defaultValue": false }, { + "name": "camel.component.atmosphere-websocket.mute-exception", + "type": "java.lang.Boolean", + "description": "If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.", + "sourceType": "org.apache.camel.component.atmosphere.websocket.springboot.WebsocketComponentConfiguration", + "defaultValue": false + }, + { "name": "camel.component.atmosphere-websocket.servlet-name", "type": "java.lang.String", "description": "Default name of servlet to use. The default name is CamelServlet.", diff --git a/docs/components/modules/spring-boot/examples/json/jetty.json b/docs/components/modules/spring-boot/examples/json/jetty.json index 7eb421c..3a6ce46 100644 --- a/docs/components/modules/spring-boot/examples/json/jetty.json +++ b/docs/components/modules/spring-boot/examples/json/jetty.json @@ -114,6 +114,13 @@ "sourceType": "org.apache.camel.component.jetty9.springboot.JettyHttpComponentConfiguration9" }, { + "name": "camel.component.jetty.mute-exception", + "type": "java.lang.Boolean", + "description": "If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.", + "sourceType": "org.apache.camel.component.jetty9.springboot.JettyHttpComponentConfiguration9", + "defaultValue": false + }, + { "name": "camel.component.jetty.proxy-host", "type": "java.lang.String", "description": "To use a http proxy to configure the hostname.",