org.apache.camel.impl
Class DefaultRoute

java.lang.Object
  extended by org.apache.camel.impl.DefaultRoute
All Implemented Interfaces:
Route
Direct Known Subclasses:
EventDrivenConsumerRoute

public abstract class DefaultRoute
extends Object
implements Route

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

Version:
$Revision: 769303 $

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

DefaultRoute

public DefaultRoute(Endpoint endpoint)

DefaultRoute

public DefaultRoute(Endpoint endpoint,
                    Service... services)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getEndpoint

public Endpoint getEndpoint()
Description copied from interface: Route
Gets the inbound endpoint

Specified by:
getEndpoint in interface Route

setEndpoint

public void setEndpoint(Endpoint endpoint)
Description copied from interface: Route
Sets the inbound endpoint

Specified by:
setEndpoint in interface Route
Parameters:
endpoint - the endpoint

getChannels

public List<Channel> getChannels()

setChannels

public void setChannels(List<Channel> channels)

getProperties

public Map<String,Object> getProperties()
Description copied from interface: Route
This property map is used to associate information about the route.

Specified by:
getProperties in interface Route
Returns:
properties

getServicesForRoute

public List<Service> getServicesForRoute()
                                  throws Exception
Description copied from interface: Route
This property map is used to associate information about the route. Gets all tbe services for this routes

Specified by:
getServicesForRoute in interface Route
Returns:
the services
Throws:
Exception - is thrown in case of error

getServices

public List<Service> getServices()
Description copied from interface: Route
Returns the additional services required for this particular route

Specified by:
getServices in interface Route

setServices

public void setServices(List<Service> services)
Description copied from interface: Route
Sets the sources for this route

Specified by:
setServices in interface Route
Parameters:
services - the services

addService

public void addService(Service service)
Description copied from interface: Route
Adds a service to this route

Specified by:
addService in interface Route
Parameters:
service - the 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


Copyright © 2009 Apache Software Foundation. All Rights Reserved.