This is an automated email from the ASF dual-hosted git repository. oalsafi pushed a commit to branch camel-3.0.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.0.x by this push: new c462d34 Regen c462d34 is described below commit c462d346122b50f37810b2ae178f43b37749b7dc Author: Omar Al-Safi <omars...@gmail.com> AuthorDate: Fri Nov 29 16:08:45 2019 +0100 Regen --- .../camel-stomp/src/main/docs/stomp-component.adoc | 6 ++-- .../endpoint/dsl/StompEndpointBuilderFactory.java | 33 ++++++++++++++++++++++ .../modules/ROOT/pages/stomp-component.adoc | 6 ++-- .../springboot/StompComponentConfiguration.java | 12 ++++++++ 4 files changed, 53 insertions(+), 4 deletions(-) diff --git a/components/camel-stomp/src/main/docs/stomp-component.adoc b/components/camel-stomp/src/main/docs/stomp-component.adoc index f3efebb..d1f8b29 100644 --- a/components/camel-stomp/src/main/docs/stomp-component.adoc +++ b/components/camel-stomp/src/main/docs/stomp-component.adoc @@ -82,7 +82,7 @@ with the following path and query parameters: |=== -=== Query Parameters (12 parameters): +=== Query Parameters (13 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -90,6 +90,7 @@ with the following path and query parameters: | Name | Description | Default | Type | *brokerURL* (common) | *Required* The URI of the Stomp broker to connect to | tcp://localhost:61613 | String | *host* (common) | The virtual host name | | String +| *version* (common) | The STOMP Version | | String | *bridgeErrorHandler* (consumer) | 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 message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. | | ExceptionHandler | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. | | ExchangePattern @@ -118,7 +119,7 @@ When using Spring Boot make sure to use the following Maven dependency to have s ---- -The component supports 15 options, which are listed below. +The component supports 16 options, which are listed below. @@ -133,6 +134,7 @@ The component supports 15 options, which are listed below. | *camel.component.stomp.configuration.login* | The username | | String | *camel.component.stomp.configuration.passcode* | The password | | String | *camel.component.stomp.configuration.ssl-context-parameters* | To configure security using SSLContextParameters | | SSLContextParameters +| *camel.component.stomp.configuration.version* | The STOMP Version | | String | *camel.component.stomp.enabled* | Whether to enable auto configuration of the stomp component. This is enabled by default. | | Boolean | *camel.component.stomp.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. | | String | *camel.component.stomp.host* | The virtual host | | String diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/StompEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/StompEndpointBuilderFactory.java index 6c036ca..7257829 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/StompEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/StompEndpointBuilderFactory.java @@ -67,6 +67,17 @@ public interface StompEndpointBuilderFactory { return this; } /** + * The STOMP Version. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + */ + default StompEndpointConsumerBuilder version(String version) { + doSetProperty("version", version); + return this; + } + /** * 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 @@ -333,6 +344,17 @@ public interface StompEndpointBuilderFactory { return this; } /** + * The STOMP Version. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + */ + default StompEndpointProducerBuilder version(String version) { + doSetProperty("version", version); + return this; + } + /** * 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 @@ -546,6 +568,17 @@ public interface StompEndpointBuilderFactory { return this; } /** + * The STOMP Version. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + */ + default StompEndpointBuilder version(String version) { + doSetProperty("version", version); + return this; + } + /** * The username. * * The option is a: <code>java.lang.String</code> type. diff --git a/docs/components/modules/ROOT/pages/stomp-component.adoc b/docs/components/modules/ROOT/pages/stomp-component.adoc index c15ea17..92ff8c3 100644 --- a/docs/components/modules/ROOT/pages/stomp-component.adoc +++ b/docs/components/modules/ROOT/pages/stomp-component.adoc @@ -83,7 +83,7 @@ with the following path and query parameters: |=== -=== Query Parameters (12 parameters): +=== Query Parameters (13 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -91,6 +91,7 @@ with the following path and query parameters: | Name | Description | Default | Type | *brokerURL* (common) | *Required* The URI of the Stomp broker to connect to | tcp://localhost:61613 | String | *host* (common) | The virtual host name | | String +| *version* (common) | The STOMP Version | | String | *bridgeErrorHandler* (consumer) | 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 message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. | | ExceptionHandler | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. | | ExchangePattern @@ -119,7 +120,7 @@ When using Spring Boot make sure to use the following Maven dependency to have s ---- -The component supports 15 options, which are listed below. +The component supports 16 options, which are listed below. @@ -134,6 +135,7 @@ The component supports 15 options, which are listed below. | *camel.component.stomp.configuration.login* | The username | | String | *camel.component.stomp.configuration.passcode* | The password | | String | *camel.component.stomp.configuration.ssl-context-parameters* | To configure security using SSLContextParameters | | SSLContextParameters +| *camel.component.stomp.configuration.version* | The STOMP Version | | String | *camel.component.stomp.enabled* | Whether to enable auto configuration of the stomp component. This is enabled by default. | | Boolean | *camel.component.stomp.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. | | String | *camel.component.stomp.host* | The virtual host | | String diff --git a/platforms/spring-boot/components-starter/camel-stomp-starter/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-stomp-starter/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java index 81176ab..ca15594 100644 --- a/platforms/spring-boot/components-starter/camel-stomp-starter/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java +++ b/platforms/spring-boot/components-starter/camel-stomp-starter/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java @@ -198,6 +198,10 @@ public class StompComponentConfiguration * To configure security using SSLContextParameters */ private SSLContextParameters sslContextParameters; + /** + * The STOMP Version + */ + private String version; public String getHost() { return host; @@ -239,5 +243,13 @@ public class StompComponentConfiguration SSLContextParameters sslContextParameters) { this.sslContextParameters = sslContextParameters; } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } } } \ No newline at end of file