You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/03 12:26:01 UTC
[camel] 01/06: CAMEL-16171 - Add uri-endpoint-override options to
all AWS2 components - AWS2-SNS component
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit fe35b265040ad6cb30da9c027c2b5b6a3b966694
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 3 12:02:51 2021 +0100
CAMEL-16171 - Add uri-endpoint-override options to all AWS2 components - AWS2-SNS component
---
.../component/aws2/sns/Sns2Configuration.java | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
index 21f19c0..e3d9ff2 100644
--- a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
+++ b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
@@ -54,6 +54,10 @@ public class Sns2Configuration implements Cloneable {
private boolean serverSideEncryptionEnabled;
@UriParam(defaultValue = "true")
private boolean autoCreateTopic = true;
+ @UriParam(defaultValue = "false")
+ private boolean overrideEndpoint;
+ @UriParam
+ private String uriEndpointOverride;
// Producer only properties
@UriParam
@@ -334,6 +338,29 @@ public class Sns2Configuration implements Cloneable {
this.messageDeduplicationIdStrategy = messageDeduplicationIdStrategy;
}
+ public boolean isOverrideEndpoint() {
+ return overrideEndpoint;
+ }
+
+ /**
+ * Set the need for overidding the endpoint. This option needs to be used in combination with uriEndpointOverride
+ * option
+ */
+ public void setOverrideEndpoint(boolean overrideEndpoint) {
+ this.overrideEndpoint = overrideEndpoint;
+ }
+
+ public String getUriEndpointOverride() {
+ return uriEndpointOverride;
+ }
+
+ /**
+ * Set the overriding uri endpoint. This option needs to be used in combination with overrideEndpoint option
+ */
+ public void setUriEndpointOverride(String uriEndpointOverride) {
+ this.uriEndpointOverride = uriEndpointOverride;
+ }
+
// *************************************************
//
// *************************************************