public final class TaskHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildUrl(org.apache.camel.CamelContext camelContext,
Map<String,String> props,
String componentSchema,
String endpointPropertiesPrefix,
String pathPropertiesPrefix)
Try to build a url of a Camel
Endpoint. |
static Map<String,String> |
combineDefaultAndLoadedProperties(Map<String,String> defaultProps,
Map<String,String> loadedProps)
Combines default properties with loaded properties with the following logic:
1) loaded properties overwrite default properties.
|
static void |
logRecordContent(org.slf4j.Logger logger,
org.apache.camel.LoggingLevel level,
org.apache.kafka.connect.connector.ConnectRecord<?> record) |
public static String buildUrl(org.apache.camel.CamelContext camelContext, Map<String,String> props, String componentSchema, String endpointPropertiesPrefix, String pathPropertiesPrefix) throws URISyntaxException
Endpoint.camelContext - the CamelContext used to retrieve an instance of a EndpointUriFactory for the given component schema.props - properties used to build the url in the form of a key -> value Map.componentSchema - the schema name of the Camel Component used to build the Camel Endpoint url.endpointPropertiesPrefix - prefix of all the Camel Endpoint properties.pathPropertiesPrefix - prefix of all the properties used in the Camel Endpoint path.{@link - URISyntaxException} in case of uri build failure.URISyntaxExceptionpublic static Map<String,String> combineDefaultAndLoadedProperties(Map<String,String> defaultProps, Map<String,String> loadedProps)
defaultProps - RuntimeCamelCatalog used to build the url.loadedProps - properties used to build the url in the form of a key -> value Map.public static void logRecordContent(org.slf4j.Logger logger,
org.apache.camel.LoggingLevel level,
org.apache.kafka.connect.connector.ConnectRecord<?> record)
Copyright © 2020 The Apache Software Foundation. All rights reserved.