public interface Component extends CamelContextAware
Modifier and Type | Method and Description |
---|---|
ComponentConfiguration |
createComponentConfiguration()
Deprecated.
|
EndpointConfiguration |
createConfiguration(String uri)
Deprecated.
|
Endpoint |
createEndpoint(String uri)
Attempt to resolve an endpoint for the given URI if the component is
capable of handling the URI.
|
default <T extends ComponentExtension> |
getExtension(Class<T> extensionType)
Gets the extension of the given type.
|
default Collection<Class<? extends ComponentExtension>> |
getSupportedExtensions()
Gets a list of supported extensions.
|
boolean |
useRawUri()
Whether to use raw or encoded uri, when creating endpoints.
|
getCamelContext, setCamelContext
Endpoint createEndpoint(String uri) throws Exception
useRawUri()
for controlling whether the passed in uri
should be as-is (raw), or encoded (default).uri
- the URI to create; either raw or encoded (default)Endpoint
or null if this component cannot create
Endpoint
instances using the given uriException
- is thrown if error creating the endpointuseRawUri()
boolean useRawUri()
@Deprecated EndpointConfiguration createConfiguration(String uri) throws Exception
uri
- the configuration URIEndpointConfiguration
Exception
- is thrown if the configuration URI is invalid@Deprecated ComponentConfiguration createComponentConfiguration()
default Collection<Class<? extends ComponentExtension>> getSupportedExtensions()
default <T extends ComponentExtension> Optional<T> getExtension(Class<T> extensionType)
extensionType
- tye type of the extensionsApache Camel