|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.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(RouteContext routeContext,
Endpoint endpoint)
|
|
DefaultRoute(RouteContext routeContext,
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 |
protected void |
doStart()
|
protected void |
doStop()
|
Endpoint |
getEndpoint()
Gets the inbound endpoint |
String |
getId()
Gets the route id |
Map<String,Object> |
getProperties()
This property map is used to associate information about the route. |
RouteContext |
getRouteContext()
Gets the route context |
List<Service> |
getServices()
Returns the services for this particular route |
List<Service> |
getServicesForRoute()
This property map is used to associate information about the route. |
void |
onStartingServices(List<Service> services)
A strategy callback allowing special initialization when services is starting. |
String |
toString()
|
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
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 |
---|
getConsumer, navigate |
Constructor Detail |
---|
public DefaultRoute(RouteContext routeContext, Endpoint endpoint)
public DefaultRoute(RouteContext routeContext, Endpoint endpoint, Service... services)
Method Detail |
---|
public String toString()
toString
in class Object
public String getId()
Route
getId
in interface Route
public Endpoint getEndpoint()
Route
getEndpoint
in interface Route
public RouteContext getRouteContext()
Route
getRouteContext
in interface Route
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 void onStartingServices(List<Service> services) throws Exception
Route
onStartingServices
in interface Route
services
- the service
Exception
- is thrown in case of errorpublic List<Service> getServices()
Route
getServices
in interface Route
public void addService(Service service)
Route
addService
in interface Route
service
- the serviceprotected void addServices(List<Service> services) throws Exception
Exception
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |