org.apache.camel.impl
Class DefaultComponentConfiguration

java.lang.Object
  extended by org.apache.camel.impl.ComponentConfigurationSupport
      extended by org.apache.camel.impl.DefaultComponentConfiguration
All Implemented Interfaces:
ComponentConfiguration

public class DefaultComponentConfiguration
extends ComponentConfigurationSupport

Default implementation for components which do not inherit from UriEndpointComponent and do not have Endpoint classes annotated with UriEndpoint


Field Summary
 
Fields inherited from class org.apache.camel.impl.ComponentConfigurationSupport
component
 
Constructor Summary
DefaultComponentConfiguration(Component component)
           
 
Method Summary
 Object getEndpointParameter(Endpoint endpoint, String name)
          Gets the named URI parameter value on the given endpoint
 SortedMap<String,ParameterConfiguration> getParameterConfigurationMap()
          Since we have no parameter metadata lets just return parameter configurations for each parameter we have right now.
 void setEndpointParameter(Endpoint endpoint, String name, Object value)
          Sets the named URI query parameter value on the given endpoint
 
Methods inherited from class org.apache.camel.impl.ComponentConfigurationSupport
completeEndpointPath, configureEndpoint, createEndpoint, createParameterJsonSchema, getBaseUri, getParameter, getParameterConfiguration, getParameters, getUriString, setBaseUri, setParameter, setParameters, setUriString, validatePropertyName, validatePropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentConfiguration

public DefaultComponentConfiguration(Component component)
Method Detail

getEndpointParameter

public Object getEndpointParameter(Endpoint endpoint,
                                   String name)
                            throws RuntimeCamelException
Description copied from interface: ComponentConfiguration
Gets the named URI parameter value on the given endpoint

Parameters:
endpoint - the endpoint instance
name - the name of the URI query parameter
Returns:
the value of the parameter
Throws:
RuntimeCamelException - if the parameter name does not exist on the endpoint

setEndpointParameter

public void setEndpointParameter(Endpoint endpoint,
                                 String name,
                                 Object value)
                          throws RuntimeCamelException
Description copied from interface: ComponentConfiguration
Sets the named URI query parameter value on the given endpoint

Parameters:
endpoint - the endpoint instance
name - the name of the URI query parameter
value - the new value of the URI query parameter
Throws:
RuntimeCamelException

getParameterConfigurationMap

public SortedMap<String,ParameterConfiguration> getParameterConfigurationMap()
Since we have no parameter metadata lets just return parameter configurations for each parameter we have right now.

Returns:
configurations for each current property value


Apache Camel