org.apache.camel
Class Route<E extends Exchange>
java.lang.Object
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 $
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
Route
public Route(Endpoint<E> endpoint)
Route
public Route(Endpoint<E> endpoint,
Service... services)
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