Interface RuntimeCamelCatalog
- All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service, StaticService
Runtime catalog which limited API needed by components that supports
ComponentVerifierExtension.- Since:
- 3.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasEndpointUri(String scheme, Map<String, String> properties, boolean encode) Creates an endpoint uri in Java style from the information from the properties@Nullable StringcomponentJSonSchema(String name) Returns the component information as JSON format.Parses the endpoint uri and constructs a key/value properties of only the lenient properties (eg custom options)endpointProperties(String uri) Parses the endpoint uri and constructs a key/value properties of each option.booleanmatchEndpointIdentity(String uri1, String uri2) Checks whether two endpoint URIs refer to the same logical endpoint.validateProperties(String scheme, Map<String, String> properties) Validates the properties for the given scheme against component and endpointMethods inherited from interface CamelContextAware
setCamelContextMethods inherited from interface HasCamelContext
getCamelContext
-
Field Details
-
FACTORY
-
-
Method Details
-
componentJSonSchema
Returns the component information as JSON format. This API is needed byComponentVerifierExtension.- Parameters:
name- the component name- Returns:
- component details in JSon
-
endpointProperties
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
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
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 URISyntaxExceptionCreates 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
-
matchEndpointIdentity
Checks whether two endpoint URIs refer to the same logical endpoint. Two URIs match when they share the same scheme, context-path, and — if the component declares any query parameters asendpointIdentity— the same values for those identity parameters. Non-identity query parameters (timeouts, buffer sizes, etc.) are ignored.- Parameters:
uri1- the first endpoint uriuri2- the second endpoint uri- Returns:
trueif both URIs identify the same destination- Since:
- 4.21
-