org.apache.camel
Class Route<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.Route<E>
Direct Known Subclasses:
EventDrivenConsumerRoute

public class Route<E extends Exchange>
extends Object

A Route defines the processing used on an inbound message exchange from a specific Endpoint within a CamelContext

Version:
$Revision: 701021 $

Field Summary
static String GROUP_PROPERTY
           
static String ID_PROPERTY
           
static String PARENT_PROPERTY
           
 
Constructor Summary
Route(Endpoint<E> endpoint)
           
Route(Endpoint<E> endpoint, Service... services)
           
 
Method Summary
 void addService(Service service)
           
protected  void addServices(List<Service> services)
          Strategy method to allow derived classes to lazily load services for the route
 Endpoint<E> getEndpoint()
           
 Map<String,Object> getProperties()
          This property map is used to associate information about the route.
 List<Service> getServices()
          Returns the additional services required for this particular route
 List<Service> getServicesForRoute()
           
 void setEndpoint(Endpoint<E> endpoint)
           
 void setServices(List<Service> services)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_PROPERTY

public static final String ID_PROPERTY
See Also:
Constant Field Values

PARENT_PROPERTY

public static final String PARENT_PROPERTY
See Also:
Constant Field Values

GROUP_PROPERTY

public static final String GROUP_PROPERTY
See Also:
Constant Field Values
Constructor Detail

Route

public Route(Endpoint<E> endpoint)

Route

public Route(Endpoint<E> endpoint,
             Service... services)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getEndpoint

public Endpoint<E> getEndpoint()

setEndpoint

public void setEndpoint(Endpoint<E> endpoint)

getProperties

public Map<String,Object> getProperties()
This property map is used to associate information about the route.


getServicesForRoute

public List<Service> getServicesForRoute()
                                  throws Exception
Throws:
Exception

getServices

public List<Service> getServices()
Returns the additional services required for this particular route


setServices

public void setServices(List<Service> services)

addService

public void addService(Service service)

addServices

protected void addServices(List<Service> services)
                    throws Exception
Strategy method to allow derived classes to lazily load services for the route

Throws:
Exception


Apache CAMEL