@Deprecated public abstract class ComponentConfigurationSupport extends Object implements ComponentConfiguration
ComponentConfiguration| Modifier and Type | Field and Description |
|---|---|
protected Component |
component
Deprecated.
|
| Constructor and Description |
|---|
ComponentConfigurationSupport(Component component)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
completeEndpointPath(String completionText)
Deprecated.
A helper method for tools such as CLIs, IDEs or web tools that provides a completion list for Endpoint Paths
rather like bash tab completion or Karaf attribute or option completion handlers.
|
void |
configureEndpoint(Endpoint endpoint)
Deprecated.
Configures the properties on the given endpoint
|
Endpoint |
createEndpoint()
Deprecated.
Converts the configuration into a URI and then looks up the endpoint in the
CamelContext
which typically results in a new Endpoint instance being created. |
String |
createParameterJsonSchema()
Deprecated.
Creates a JSON schema representation of the
configuration parameters for this endpoint and the types and validation rules.
|
String |
getBaseUri()
Deprecated.
Returns the base URI without any scheme or URI query parameters (property values)
|
Object |
getParameter(String name)
Deprecated.
Returns the parameter value for the given name
|
ParameterConfiguration |
getParameterConfiguration(String name)
Deprecated.
Returns the URI query parameter configuration for the given parameter name or null if it does not exist
|
Map<String,Object> |
getParameters()
Deprecated.
Returns the current parameters of the configuration (usually encoded as ?foo=bar&whatnot=something URI query parameters)
|
String |
getUriString()
Deprecated.
Returns the URI string (without schema) with query parameters for the current
configuration which can then be used to create an
Endpoint |
void |
setBaseUri(String baseUri)
Deprecated.
Sets the base URI without any query parameters added
|
void |
setParameter(String name,
Object value)
Deprecated.
Sets the parameter value of the given name
|
void |
setParameters(Map<String,Object> newValues)
Deprecated.
Sets the parameter values of this configuration
|
void |
setUriString(String uri)
Deprecated.
Sets the URI string (without schema but with optional query parameters)
which will update the
ComponentConfiguration.getBaseUri() and the ComponentConfiguration.getParameters() values |
protected void |
validatePropertyName(String name)
Deprecated.
Allow implementations to validate whether a property name is valid
and either throw an exception or log a warning of an unknown property being used
|
protected Object |
validatePropertyValue(String name,
Object value)
Deprecated.
Allow implementations to validate whether a property name is valid
and either throw an exception or log a warning of an unknown property being used
and to convert the given value to the correct type before updating the value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndpointParameter, getParameterConfigurationMap, setEndpointParameterpublic ComponentConfigurationSupport(Component component)
public Map<String,Object> getParameters()
ComponentConfigurationgetParameters in interface ComponentConfigurationpublic void setParameters(Map<String,Object> newValues)
ComponentConfigurationsetParameters in interface ComponentConfigurationpublic Object getParameter(String name)
ComponentConfigurationgetParameter in interface ComponentConfigurationname - the name of the URI query parameter to getpublic void setParameter(String name, Object value)
ComponentConfigurationsetParameter in interface ComponentConfigurationname - the name of the URI query parametervalue - the new value of the parameterpublic String getBaseUri()
getBaseUri in interface ComponentConfigurationpublic void setBaseUri(String baseUri)
ComponentConfigurationsetBaseUri in interface ComponentConfigurationpublic Endpoint createEndpoint() throws Exception
ComponentConfigurationCamelContext
which typically results in a new Endpoint instance being created.createEndpoint in interface ComponentConfigurationExceptionpublic void configureEndpoint(Endpoint endpoint)
configureEndpoint in interface ComponentConfigurationendpoint - the endpoint instancepublic String getUriString()
ComponentConfigurationEndpointgetUriString in interface ComponentConfigurationpublic void setUriString(String uri) throws URISyntaxException
ComponentConfigurationComponentConfiguration.getBaseUri() and the ComponentConfiguration.getParameters() valuessetUriString in interface ComponentConfigurationuri - the new URI string with query argumentsURISyntaxExceptionpublic ParameterConfiguration getParameterConfiguration(String name)
ComponentConfigurationgetParameterConfiguration in interface ComponentConfigurationpublic List<String> completeEndpointPath(String completionText)
ComponentConfigurationcompleteEndpointPath in interface ComponentConfigurationcompletionText - the prefix text used to complete on (usually a matching bit of text)public String createParameterJsonSchema()
ComponentConfigurationcreateParameterJsonSchema in interface ComponentConfigurationprotected void validatePropertyName(String name)
protected Object validatePropertyValue(String name, Object value)
Apache Camel