org.apache.camel.impl
Class DefaultEndpointConfiguration

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpointConfiguration
All Implemented Interfaces:
EndpointConfiguration
Direct Known Subclasses:
MappedEndpointConfiguration

public abstract class DefaultEndpointConfiguration
extends Object
implements EndpointConfiguration

Default implementation of EndpointConfiguration.

Version:

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.camel.EndpointConfiguration
EndpointConfiguration.UriFormat
 
Field Summary
 
Fields inherited from interface org.apache.camel.EndpointConfiguration
URI_AUTHORITY, URI_FRAGMENT, URI_HOST, URI_PATH, URI_PORT, URI_QUERY, URI_SCHEME, URI_SCHEME_SPECIFIC_PART, URI_USER_INFO
 
Constructor Summary
DefaultEndpointConfiguration(CamelContext camelContext)
           
DefaultEndpointConfiguration(CamelContext camelContext, String uri)
           
 
Method Summary
protected  CamelContext getCamelContext()
           
<T> T
getParameter(String name)
          Gets the value of a particular parameter.
 URI getURI()
          Returns the URI configuration of an Endpoint.
protected  void parseURI()
           
<T> void
setParameter(String name, T value)
          Sets the value of a particular parameter.
 void setURI(String uri)
           
 void setURI(URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.EndpointConfiguration
toUriString
 

Constructor Detail

DefaultEndpointConfiguration

public DefaultEndpointConfiguration(CamelContext camelContext)

DefaultEndpointConfiguration

public DefaultEndpointConfiguration(CamelContext camelContext,
                                    String uri)
Method Detail

getURI

public URI getURI()
Description copied from interface: EndpointConfiguration
Returns the URI configuration of an Endpoint.

Specified by:
getURI in interface EndpointConfiguration
Returns:
the configuration URI.

setURI

public void setURI(URI uri)

setURI

public void setURI(String uri)

getParameter

public <T> T getParameter(String name)
Description copied from interface: EndpointConfiguration
Gets the value of a particular parameter.

Specified by:
getParameter in interface EndpointConfiguration
Parameters:
name - the parameter name
Returns:
the configuration URI.

setParameter

public <T> void setParameter(String name,
                             T value)
Description copied from interface: EndpointConfiguration
Sets the value of a particular parameter.

Specified by:
setParameter in interface EndpointConfiguration
Parameters:
name - the parameter name
value - the parameter value

getCamelContext

protected CamelContext getCamelContext()

parseURI

protected void parseURI()


Apache Camel