Home » apache-camel-1.5.0-src » org.apache » camel » [javadoc | source]
org.apache.camel
public interface: Endpoint [javadoc | source] An endpoint implements the Message Endpoint pattern and represents an endpoint that can send and receive message exchanges
Method from org.apache.camel.Endpoint Summary:
configureProperties,   createConsumer,   createExchange,   createExchange,   createExchange,   createPollingConsumer,   createProducer,   getCamelContext,   getContext,   getEndpointUri,   isLenientProperties,   isSingleton,   setCamelContext,   setContext
Method from org.apache.camel.Endpoint Detail:
 public  void configureProperties(Map options)
 public Consumer<E> createConsumer(Processor processor) throws Exception
 public E createExchange()
    Create a new exchange for communicating with this endpoint
 public E createExchange(ExchangePattern pattern)
 public E createExchange(Exchange exchange)
    Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values of the headers and messages
 public PollingConsumer<E> createPollingConsumer() throws Exception
 public Producer<E> createProducer() throws Exception
    Creates a new producer which is used send messages into the endpoint
 public CamelContext getCamelContext()
    Returns the context which created the endpoint
 public CamelContext getContext()
 public String getEndpointUri()
    Returns the string representation of the endpoint URI
 public boolean isLenientProperties()
    Should all properties be known or does the endpoint allow unknown options?

    Lenient = false means that the endpoint should validate that all given options is known and configured properly lenient = true means that the endpoint allows additional unknown options to be passed to it but does not throw a ResolveEndpointFailedException when creating the endpoint.

    This options is used by a few components for instance the HTTP based that can have dynamic URI options appended that is targeted for an external system.

    Most endpoints is configued to be not lenient.

 public boolean isSingleton()
    Returns if the endpoint should be a CamelContext singleton. If the endpoint is a Singleton, then a single Endpoint instance will be shared by all routes with the same URI. Because the endpoint is shared, it should be treated as an immutable.
 public  void setCamelContext(CamelContext context)
 public  void setContext(CamelContext context)