ramu11 commented on code in PR #27686:
URL: https://github.com/apache/camel/pull/27686#discussion_r4254903065
##########
components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/Kamelet.java:
##########
@@ -55,18 +63,33 @@ public final class Kamelet {
public static final String PARENT_PROCESSOR_ID = "parentProcessorId";
public static final String NO_ERROR_HANDLER = "noErrorHandler";
public static final String BRIDGE_ERROR_HANDLER = "bridgeErrorHandler";
+ static final String ADVANCED_SOURCE_OPTIONS = "internal.advanced.source";
+ static final String ADVANCED_SINK_OPTIONS = "internal.advanced.sink";
// use a running counter as uuid
private static final UuidGenerator UUID = new SimpleUuidGenerator();
private Kamelet() {
}
+ private static boolean isKameletEndpoint(String uri, String endpoint) {
+ if (uri == null) {
+ return false;
+ }
+ return uri.equals("kamelet:" + endpoint)
+ || uri.startsWith("kamelet:" + endpoint + "?")
+ || uri.startsWith("kamelet:" + endpoint + "/")
+ || uri.equals("kamelet://" + endpoint)
+ || uri.startsWith("kamelet://" + endpoint + "?")
+ || uri.startsWith("kamelet://" + endpoint + "/");
+ }
+
public static Predicate<String> startsWith(String prefix) {
return item -> item.startsWith(prefix);
}
- public static String extractTemplateId(CamelContext context, String
remaining, Map<String, Object> parameters) {
+ public static String extractTemplateId(
+ CamelContext context, String remaining, Map<String, Object>
parameters) {
Review Comment:
addressed
--
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]