org.apache.camel
Interface Component

All Superinterfaces:
CamelContextAware
All Known Implementing Classes:
BeanComponent, BindingComponent, BindingNameComponent, BrowseComponent, ClassComponent, ControlBusComponent, DataSetComponent, DefaultComponent, DirectComponent, DirectVmComponent, FileComponent, GenericFileComponent, HeaderFilterStrategyComponent, LanguageComponent, LogComponent, MockComponent, PropertiesComponent, RefComponent, SedaComponent, StubComponent, TestComponent, TimerComponent, ValidatorComponent, VmComponent, XsltComponent

public interface Component
extends CamelContextAware

A component is a factory of Endpoint objects.

Version:

Method Summary
 EndpointConfiguration createConfiguration(String uri)
          Attempt to create a configuration object from the given uri
 Endpoint createEndpoint(String uri)
          Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI.
 boolean useRawUri()
          Whether to use raw or encoded uri, when creating endpoints.
 
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
 

Method Detail

createEndpoint

Endpoint createEndpoint(String uri)
                        throws Exception
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI.

See useRawUri() for controlling whether the passed in uri should be as-is (raw), or encoded (default).

Parameters:
uri - the URI to create; either raw or encoded (default)
Returns:
a newly created Endpoint or null if this component cannot create Endpoint instances using the given uri
Throws:
Exception - is thrown if error creating the endpoint
See Also:
useRawUri()

useRawUri

boolean useRawUri()
Whether to use raw or encoded uri, when creating endpoints.

Notice: When using raw uris, then the parameter values is raw as well.

Returns:
true to use raw uris, false to use encoded uris (default).
Since:
Camel 2.11.0

createConfiguration

EndpointConfiguration createConfiguration(String uri)
                                          throws Exception
Attempt to create a configuration object from the given uri

Parameters:
uri - the configuration URI
Returns:
a newly created EndpointConfiguration
Throws:
Exception - is thrown if the configuration URI is invalid
Since:
Camel 2.9.0


Apache Camel