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(Component component)
           
DefaultEndpointConfiguration(Component component, String uri)
           
 
Method Summary
protected  Component getComponent()
           
<T> T
getParameter(String name)
          Gets the value of a particular parameter.
 URI getURI()
          Returns the URI configuration of an Endpoint.
protected  void parseURI()
           
 void setComponent(Component component)
           
<T> void
setParameter(String name, T value)
          Sets the value of a particular parameter.
 void setURI(URI uri)
           
 String toUriString(EndpointConfiguration.UriFormat format)
          Returns the formatted configuration string of an Endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEndpointConfiguration

public DefaultEndpointConfiguration(Component component)

DefaultEndpointConfiguration

public DefaultEndpointConfiguration(Component component,
                                    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)

setComponent

public void setComponent(Component component)

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

toUriString

public String toUriString(EndpointConfiguration.UriFormat format)
Description copied from interface: EndpointConfiguration
Returns the formatted configuration string of an Endpoint.

Specified by:
toUriString in interface EndpointConfiguration
Parameters:
format - the format
Returns:
the configuration URI in String format.

getComponent

protected Component getComponent()

parseURI

protected void parseURI()


Apache CAMEL