Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@
"jetstreamAsync": { "index": 38, "kind": "property", "displayName": "Jetstream Async", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Sets whether to operate JetStream requests asynchronously." },
"traceConnection": { "index": 39, "kind": "property", "displayName": "Trace Connection", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues." },
"credentialsFilePath": { "index": 40, "kind": "property", "displayName": "Credentials File Path", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "If we use useCredentialsFile to true we'll need to set the credentialsFilePath option. It can be loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems." },
"secure": { "index": 41, "kind": "property", "displayName": "Secure", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Set secure option indicating TLS is required" },
"sslContextParameters": { "index": 42, "kind": "property", "displayName": "Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "To configure security using SSLContextParameters" },
"useGlobalSslContextParameters": { "index": 43, "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Enable usage of global SSL context parameters." }
"hostnameVerification": { "index": 41, "kind": "property", "displayName": "Hostname Verification", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": true, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Whether to check that the certificate of the NATS server matches the host Camel connects to, when TLS is used. The client then keeps the host name of a server for TLS, and connects to the fastest of its IP addresses. A server that is given, or that the cluster announces, by its IP address needs a certificate that names that address. When disabled, any certificate trusted by the JVM, or by the sslContextParameters, is accepted, whatever host it was issued for." },
"secure": { "index": 42, "kind": "property", "displayName": "Secure", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Set secure option indicating TLS is required" },
"sslContextParameters": { "index": 43, "kind": "property", "displayName": "Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "To configure security using SSLContextParameters" },
"useGlobalSslContextParameters": { "index": 44, "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Enable usage of global SSL context parameters." }
},
"headers": {
"CamelNatsMessageTimestamp": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "The timestamp of a consumed message.", "constantName": "org.apache.camel.component.nats.NatsConstants#NATS_MESSAGE_TIMESTAMP" },
Expand Down Expand Up @@ -129,8 +130,9 @@
"jetstreamAsync": { "index": 39, "kind": "parameter", "displayName": "Jetstream Async", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Sets whether to operate JetStream requests asynchronously." },
"traceConnection": { "index": 40, "kind": "parameter", "displayName": "Trace Connection", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Whether or not connection trace messages should be printed to standard out for fine grained debugging of connection issues." },
"credentialsFilePath": { "index": 41, "kind": "parameter", "displayName": "Credentials File Path", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "If we use useCredentialsFile to true we'll need to set the credentialsFilePath option. It can be loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems." },
"secure": { "index": 42, "kind": "parameter", "displayName": "Secure", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Set secure option indicating TLS is required" },
"sslContextParameters": { "index": 43, "kind": "parameter", "displayName": "Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "To configure security using SSLContextParameters" }
"hostnameVerification": { "index": 42, "kind": "parameter", "displayName": "Hostname Verification", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": true, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Whether to check that the certificate of the NATS server matches the host Camel connects to, when TLS is used. The client then keeps the host name of a server for TLS, and connects to the fastest of its IP addresses. A server that is given, or that the cluster announces, by its IP address needs a certificate that names that address. When disabled, any certificate trusted by the JVM, or by the sslContextParameters, is accepted, whatever host it was issued for." },
"secure": { "index": 43, "kind": "parameter", "displayName": "Secure", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "Set secure option indicating TLS is required" },
"sslContextParameters": { "index": 44, "kind": "parameter", "displayName": "Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.nats.NatsConfiguration", "configurationField": "configuration", "description": "To configure security using SSLContextParameters" }
},
"dstWorlds": {
"NatsWorld": { "javaType": "org.apache.camel.component.nats.dst.NatsWorld", "fake": "FakeJetStream: a server with one JetStream stream and its pull consumers (AckWait, MaxDeliver, Nak), behind a jnats Connection given with the connection option", "covers": [ "the JetStream pull consumer with explicit acks and naks, ephemeral or durable", "AckWait and MaxDeliver", "route stop and start, also while the consumer waits in a fetch", "a server restart that deletes the ephemeral consumer, and the subscription made again" ], "faults": [ "a fetch ends empty while the connection is down", "the flush of the stop times out", "an ack is lost", "the server restarts (409 Server Shutdown) or the consumer is deleted (409 Consumer Deleted)", "processing fails", "processing is slower than AckWait" ], "invariants": [ "the consumer uses the connection as documented", "a message is acknowledged only after its exchange completed", "a message is nak'd only after its exchange failed", "a stopped consumer leaves no subscription active", "every message is acknowledged once the faults cleared, or given up after MaxDeliver (or skipped by a consumer made again after its ack was lost)" ], "issues": [ "CAMEL-26884" ], "tests": [ "NatsConsumerDstTest" ] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj
case "flushTimeout": getOrCreateConfiguration(target).setFlushTimeout(property(camelContext, int.class, value)); return true;
case "headerfilterstrategy":
case "headerFilterStrategy": getOrCreateConfiguration(target).setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "hostnameverification":
case "hostnameVerification": getOrCreateConfiguration(target).setHostnameVerification(property(camelContext, boolean.class, value)); return true;
case "jetstreamasync":
case "jetstreamAsync": getOrCreateConfiguration(target).setJetstreamAsync(property(camelContext, boolean.class, value)); return true;
case "jetstreamenabled":
Expand Down Expand Up @@ -143,6 +145,8 @@ public Class<?> getOptionType(String name, boolean ignoreCase) {
case "flushTimeout": return int.class;
case "headerfilterstrategy":
case "headerFilterStrategy": return org.apache.camel.spi.HeaderFilterStrategy.class;
case "hostnameverification":
case "hostnameVerification": return boolean.class;
case "jetstreamasync":
case "jetstreamAsync": return boolean.class;
case "jetstreamenabled":
Expand Down Expand Up @@ -232,6 +236,8 @@ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
case "flushTimeout": return getOrCreateConfiguration(target).getFlushTimeout();
case "headerfilterstrategy":
case "headerFilterStrategy": return getOrCreateConfiguration(target).getHeaderFilterStrategy();
case "hostnameverification":
case "hostnameVerification": return getOrCreateConfiguration(target).isHostnameVerification();
case "jetstreamasync":
case "jetstreamAsync": return getOrCreateConfiguration(target).isJetstreamAsync();
case "jetstreamenabled":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj
case "flushTimeout": target.getConfiguration().setFlushTimeout(property(camelContext, int.class, value)); return true;
case "headerfilterstrategy":
case "headerFilterStrategy": target.getConfiguration().setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "hostnameverification":
case "hostnameVerification": target.getConfiguration().setHostnameVerification(property(camelContext, boolean.class, value)); return true;
case "jetstreamasync":
case "jetstreamAsync": target.getConfiguration().setJetstreamAsync(property(camelContext, boolean.class, value)); return true;
case "jetstreamenabled":
Expand Down Expand Up @@ -136,6 +138,8 @@ public Class<?> getOptionType(String name, boolean ignoreCase) {
case "flushTimeout": return int.class;
case "headerfilterstrategy":
case "headerFilterStrategy": return org.apache.camel.spi.HeaderFilterStrategy.class;
case "hostnameverification":
case "hostnameVerification": return boolean.class;
case "jetstreamasync":
case "jetstreamAsync": return boolean.class;
case "jetstreamenabled":
Expand Down Expand Up @@ -224,6 +228,8 @@ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
case "flushTimeout": return target.getConfiguration().getFlushTimeout();
case "headerfilterstrategy":
case "headerFilterStrategy": return target.getConfiguration().getHeaderFilterStrategy();
case "hostnameverification":
case "hostnameVerification": return target.getConfiguration().isHostnameVerification();
case "jetstreamasync":
case "jetstreamAsync": return target.getConfiguration().isJetstreamAsync();
case "jetstreamenabled":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class NatsEndpointUriFactory extends org.apache.camel.support.component.E
private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
private static final Map<String, String> MULTI_VALUE_PREFIXES;
static {
Set<String> props = new HashSet<>(44);
Set<String> props = new HashSet<>(45);
props.add("ackPolicy");
props.add("ackWait");
props.add("bridgeErrorHandler");
Expand All @@ -38,6 +38,7 @@ public class NatsEndpointUriFactory extends org.apache.camel.support.component.E
props.add("flushConnection");
props.add("flushTimeout");
props.add("headerFilterStrategy");
props.add("hostnameVerification");
props.add("jetstreamAsync");
props.add("jetstreamEnabled");
props.add("jetstreamName");
Expand Down
Loading
Loading