Package org.apache.camel.catalog
Interface RuntimeCamelCatalog
-
- All Superinterfaces:
AutoCloseable
,CamelContextAware
,Service
,StaticService
public interface RuntimeCamelCatalog extends StaticService, CamelContextAware
Runtime catalog which limited API needed by components that supportsComponentVerifierExtension
orSendDynamicAware
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
asEndpointUri(String scheme, Map<String,String> properties, boolean encode)
Creates an endpoint uri in Java style from the information from the propertiesString
componentJSonSchema(String name)
Returns the component information as JSON format.Map<String,String>
endpointLenientProperties(String uri)
Parses the endpoint uri and constructs a key/value properties of only the lenient properties (eg custom options)Map<String,String>
endpointProperties(String uri)
Parses the endpoint uri and constructs a key/value properties of each option.EndpointValidationResult
validateProperties(String scheme, Map<String,String> properties)
Validates the properties for the given scheme against component and endpoint-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
componentJSonSchema
String componentJSonSchema(String name)
Returns the component information as JSON format. This API is needed byComponentVerifierExtension
.- Parameters:
name
- the component name- Returns:
- component details in JSon
-
endpointProperties
Map<String,String> endpointProperties(String uri) throws URISyntaxException
Parses the endpoint uri and constructs a key/value properties of each option. This API is needed bySendDynamicAware
.- Parameters:
uri
- the endpoint uri- Returns:
- properties as key value pairs of each endpoint option
- Throws:
URISyntaxException
-
endpointLenientProperties
Map<String,String> endpointLenientProperties(String uri) throws URISyntaxException
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. This API is needed bySendDynamicAware
.- Parameters:
uri
- the endpoint uri- Returns:
- properties as key value pairs of each lenient properties
- Throws:
URISyntaxException
-
validateProperties
EndpointValidationResult validateProperties(String scheme, Map<String,String> properties)
Validates the properties for the given scheme against component and endpoint This API is needed byComponentVerifierExtension
.- Parameters:
scheme
- the endpoint schemeproperties
- the endpoint properties- Returns:
- validation result
-
asEndpointUri
String asEndpointUri(String scheme, Map<String,String> properties, boolean encode) throws URISyntaxException
Creates an endpoint uri in Java style from the information from the properties This API is needed bySendDynamicAware
.- Parameters:
scheme
- the endpoint schemaproperties
- the properties as key value pairsencode
- whether to URL encode the returned uri or not- Returns:
- the constructed endpoint uri
- Throws:
URISyntaxException
- is thrown if there is encoding error
-
-