christophd commented on code in PR #27440:
URL: https://github.com/apache/camel/pull/27440#discussion_r4210446240


##########
components/camel-openfeature/src/main/java/org/apache/camel/component/openfeature/OpenFeatureConfiguration.java:
##########
@@ -0,0 +1,234 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.openfeature;
+
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriParams;
+
+@UriParams
+public class OpenFeatureConfiguration implements Cloneable {
+
+    @UriParam(label = "common",
+              description = "The feature flag key to evaluate. Can be 
overridden per message via the CamelOpenFeatureFlagKey header.")
+    private String flagKey;
+
+    @UriParam(label = "common", defaultValue = "false",
+              description = "Default value when flag evaluation fails. When 
evaluationType is not set,"
+                            + " also determines the evaluation type: \"true\" 
or \"false\" (case-insensitive)"
+                            + " selects boolean evaluation, any other value 
selects string evaluation.")
+    private String defaultValue = "false";
+
+    @UriParam(label = "common", enums = "boolean,variant",
+              description = "The evaluation type. When set to 'boolean', 
boolean evaluation is used (getBooleanValue)."
+                            + " When set to 'variant', string evaluation is 
used (getStringValue)."
+                            + " When not set, the type is inferred from 
defaultValue.")
+    private String evaluationType;
+
+    @UriParam(label = "producer",
+              description = "Store the evaluation result in this exchange 
property, preserving the original message body.")
+    private String resultProperty;
+
+    @UriParam(label = "common", description = "Remote flagd service host. When 
set, the flagd RPC resolver is used.")
+    private String host;
+
+    @UriParam(label = "common", defaultValue = "8013", description = "Remote 
flagd service port.")
+    private int port = 8013;
+
+    @UriParam(label = "common", defaultValue = "false",
+              description = "Whether to use TLS for the remote flagd 
connection.")
+    private boolean tls;
+
+    @UriParam(label = "common",
+              description = "Path to the TLS certificate for the remote flagd 
connection.")
+    private String certPath;
+
+    @UriParam(label = "common", defaultValue = "500",
+              description = "Deadline in milliseconds for the remote flagd 
connection.")
+    private int deadline = 500;

Review Comment:
   Fixed. Changed `tls` and `certPath` labels from `"common"` to 
`"common,security"` per Camel convention (matching camel-netty, camel-http, 
etc.).
   
   _Claude Code on behalf of Christoph Deppisch_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to