|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.DefaultRoute
public abstract class DefaultRoute
A Route
defines the processing used on an inbound message exchange
from a specific Endpoint
within a CamelContext
Field Summary |
---|
Fields inherited from interface org.apache.camel.Route |
---|
GROUP_PROPERTY, ID_PROPERTY, PARENT_PROPERTY |
Constructor Summary | |
---|---|
DefaultRoute(Endpoint endpoint)
|
|
DefaultRoute(Endpoint endpoint,
Service... services)
|
Method Summary | |
---|---|
void |
addService(Service service)
Adds a service to this route |
protected void |
addServices(List<Service> services)
Strategy method to allow derived classes to lazily load services for the route |
List<Channel> |
getChannels()
|
Endpoint |
getEndpoint()
Gets the inbound endpoint |
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()
This property map is used to associate information about the route. |
void |
setChannels(List<Channel> channels)
|
void |
setEndpoint(Endpoint endpoint)
Sets the inbound endpoint |
void |
setServices(List<Service> services)
Sets the sources for this route |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Route |
---|
navigate |
Constructor Detail |
---|
public DefaultRoute(Endpoint endpoint)
public DefaultRoute(Endpoint endpoint, Service... services)
Method Detail |
---|
public String toString()
toString
in class Object
public Endpoint getEndpoint()
Route
getEndpoint
in interface Route
public void setEndpoint(Endpoint endpoint)
Route
setEndpoint
in interface Route
endpoint
- the endpointpublic List<Channel> getChannels()
public void setChannels(List<Channel> channels)
public Map<String,Object> getProperties()
Route
getProperties
in interface Route
public List<Service> getServicesForRoute() throws Exception
Route
getServicesForRoute
in interface Route
Exception
- is thrown in case of errorpublic List<Service> getServices()
Route
getServices
in interface Route
public void setServices(List<Service> services)
Route
setServices
in interface Route
services
- the servicespublic void addService(Service service)
Route
addService
in interface Route
service
- the serviceprotected void addServices(List<Service> services) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |