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
|
boolean |
validateTimePattern(String pattern)
Validates the pattern whether its a valid time pattern.
|
JSonSchemaResolver getJSonSchemaResolver()
JSonSchemaResolver
.void setJSonSchemaResolver(JSonSchemaResolver resolver)
JSonSchemaResolver
String 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 uriURISyntaxException
Map<String,String> endpointLenientProperties(String uri) throws URISyntaxException
uri
- the endpoint uriURISyntaxException
boolean 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 producerLanguageValidationResult 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