public interface RuntimeCamelCatalog extends StaticService
| Modifier and Type | Method and Description |
|---|---|
String |
asEndpointUri(String scheme,
Map<String,String> properties,
boolean encode)
Creates an endpoint uri in Java style from the information from the properties
|
String |
asEndpointUriXml(String scheme,
Map<String,String> properties,
boolean encode)
Creates an endpoint uri in XML style (eg escape & as &l;) from the information from the properties
|
String |
componentJSonSchema(String name)
Returns the component information as JSon format.
|
String |
dataFormatJSonSchema(String name)
Returns the data format information as JSon format.
|
String |
endpointComponentName(String uri)
Returns the component name from the given endpoint uri
|
Map<String,String> |
endpointLenientProperties(String uri)
Parses the endpoint uri and constructs a key/value properties of only the lenient properties (eg custom options)
For example using the HTTP components to provide query parameters in the endpoint uri.
|
Map<String,String> |
endpointProperties(String uri)
Parses the endpoint uri and constructs a key/value properties of each option
|
JSonSchemaResolver |
getJSonSchemaResolver()
Gets the
JSonSchemaResolver. |
String |
languageJSonSchema(String name)
Returns the language information as JSon format.
|
String |
modelJSonSchema(String name)
Returns the model information as JSon format.
|
void |
setJSonSchemaResolver(JSonSchemaResolver resolver)
To use a custom
JSonSchemaResolver |
EndpointValidationResult |
validateEndpointProperties(String uri)
Parses and validates the endpoint uri and constructs a key/value properties of each option.
|
EndpointValidationResult |
validateEndpointProperties(String uri,
boolean ignoreLenientProperties)
Parses and validates the endpoint uri and constructs a key/value properties of each option.
|
EndpointValidationResult |
validateEndpointProperties(String uri,
boolean ignoreLenientProperties,
boolean consumerOnly,
boolean producerOnly)
Parses and validates the endpoint uri and constructs a key/value properties of each option.
|
LanguageValidationResult |
validateLanguageExpression(ClassLoader classLoader,
String language,
String text)
Parses and validates the language as an expression
Important: This requires having camel-core and the language dependencies on the classpath
|
LanguageValidationResult |
validateLanguagePredicate(ClassLoader classLoader,
String language,
String text)
Parses and validates the language as a predicate
Important: This requires having camel-core and the language dependencies on the classpath
|
EndpointValidationResult |
validateProperties(String scheme,
Map<String,String> properties)
Validates the properties for the given scheme against component and endpoint
|
SimpleValidationResult |
validateSimpleExpression(ClassLoader classLoader,
String simple)
Parses and validates the simple expression.
|
SimpleValidationResult |
validateSimpleExpression(String simple)
Deprecated.
|
SimpleValidationResult |
validateSimplePredicate(ClassLoader classLoader,
String simple)
Parses and validates the simple predicate
Important: This requires having camel-core on the classpath
|
SimpleValidationResult |
validateSimplePredicate(String simple)
Deprecated.
|
boolean |
validateTimePattern(String pattern)
Validates the pattern whether its a valid time pattern.
|
JSonSchemaResolver getJSonSchemaResolver()
JSonSchemaResolver.void setJSonSchemaResolver(JSonSchemaResolver resolver)
JSonSchemaResolverString componentJSonSchema(String name)
name - the component nameString dataFormatJSonSchema(String name)
name - the data format nameString languageJSonSchema(String name)
name - the language nameString modelJSonSchema(String name)
name - the model nameMap<String,String> endpointProperties(String uri) throws URISyntaxException
uri - the endpoint uriURISyntaxExceptionMap<String,String> endpointLenientProperties(String uri) throws URISyntaxException
uri - the endpoint uriURISyntaxExceptionboolean validateTimePattern(String pattern)
pattern - the pattern such as 5000, 5s, 5sec, 4min, 4m30s, 1h, etc.EndpointValidationResult validateProperties(String scheme, Map<String,String> properties)
scheme - the endpoint schemeproperties - the endpoint propertiesEndpointValidationResult validateEndpointProperties(String uri)
uri - the endpoint uriEndpointValidationResult validateEndpointProperties(String uri, boolean ignoreLenientProperties)
uri - the endpoint uriignoreLenientProperties - whether to ignore components that uses lenient properties.EndpointValidationResult validateEndpointProperties(String uri, boolean ignoreLenientProperties, boolean consumerOnly, boolean producerOnly)
uri - the endpoint uriignoreLenientProperties - whether to ignore components that uses lenient properties.consumerOnly - whether the endpoint is only used as a consumerproducerOnly - whether the endpoint is only used as a producer@Deprecated SimpleValidationResult validateSimpleExpression(String simple)
validateSimpleExpression(ClassLoader, String)simple - the simple expressionSimpleValidationResult validateSimpleExpression(ClassLoader classLoader, String simple)
classLoader - a custom classloader to use for loading the language from the classpath, or null for using default classloadersimple - the simple expression@Deprecated SimpleValidationResult validateSimplePredicate(String simple)
validateSimplePredicate(ClassLoader, String)simple - the simple predicateSimpleValidationResult validateSimplePredicate(ClassLoader classLoader, String simple)
classLoader - a custom classloader to use for loading the language from the classpath, or null for using default classloadersimple - the simple predicateLanguageValidationResult validateLanguagePredicate(ClassLoader classLoader, String language, String text)
classLoader - a custom classloader to use for loading the language from the classpath, or null for using default classloaderlanguage - the name of the languagetext - the predicate textLanguageValidationResult validateLanguageExpression(ClassLoader classLoader, String language, String text)
classLoader - a custom classloader to use for loading the language from the classpath, or null for using default classloaderlanguage - the name of the languagetext - the expression textString endpointComponentName(String uri)
uri - the endpoint uriString asEndpointUri(String scheme, Map<String,String> properties, boolean encode) throws URISyntaxException
scheme - the endpoint schemaproperties - the properties as key value pairsencode - whether to URL encode the returned uri or notURISyntaxException - is thrown if there is encoding errorString asEndpointUriXml(String scheme, Map<String,String> properties, boolean encode) throws URISyntaxException
scheme - the endpoint schemaproperties - the properties as key value pairsencode - whether to URL encode the returned uri or notURISyntaxException - is thrown if there is encoding errorApache Camel