org.apache.camel.model
Class RoutesType

java.lang.Object
  extended by org.apache.camel.model.RoutesType
All Implemented Interfaces:
RouteContainer

public class RoutesType
extends Object
implements RouteContainer

Represents a collection of routes

Version:
$Revision: $

Constructor Summary
RoutesType()
           
 
Method Summary
 ExceptionType exception(Class exceptionType)
           
 RouteType from(Endpoint endpoint)
          Creates a new route from the given endpoint
 RouteType from(String uri)
          Creates a new route from the given URI input
 CamelContext getCamelContext()
           
 List<ExceptionType> getExceptions()
           
 Boolean getInheritErrorHandlerFlag()
           
 List<InterceptorType> getInterceptors()
           
 List<InterceptType> getIntercepts()
           
 List<RouteType> getRoutes()
          A list of routes
 InterceptType intercept()
           
 RoutesType intercept(DelegateProcessor interceptor)
           
 OtherwiseType intercept(Predicate predicate)
           
 void populateRoutes(List<Route> answer)
           
 RouteType route()
          Creates a new route
 RouteType route(RouteType route)
           
 void setCamelContext(CamelContext camelContext)
           
 void setExceptions(List<ExceptionType> exceptions)
           
 void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag)
           
 void setInterceptors(List<InterceptorType> interceptors)
           
 void setIntercepts(List<InterceptType> intercepts)
           
 void setRoutes(List<RouteType> routes)
          Sets the routes to use
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoutesType

public RoutesType()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

populateRoutes

public void populateRoutes(List<Route> answer)
                    throws Exception
Throws:
Exception

getRoutes

public List<RouteType> getRoutes()
Description copied from interface: RouteContainer
A list of routes

Specified by:
getRoutes in interface RouteContainer
Returns:

setRoutes

public void setRoutes(List<RouteType> routes)
Description copied from interface: RouteContainer
Sets the routes to use

Specified by:
setRoutes in interface RouteContainer

getInterceptors

public List<InterceptorType> getInterceptors()

setInterceptors

public void setInterceptors(List<InterceptorType> interceptors)

getIntercepts

public List<InterceptType> getIntercepts()

setIntercepts

public void setIntercepts(List<InterceptType> intercepts)

getExceptions

public List<ExceptionType> getExceptions()

setExceptions

public void setExceptions(List<ExceptionType> exceptions)

getCamelContext

public CamelContext getCamelContext()

setCamelContext

public void setCamelContext(CamelContext camelContext)

getInheritErrorHandlerFlag

public Boolean getInheritErrorHandlerFlag()

setInheritErrorHandlerFlag

public void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag)

route

public RouteType route()
Creates a new route


from

public RouteType from(String uri)
Creates a new route from the given URI input


from

public RouteType from(Endpoint endpoint)
Creates a new route from the given endpoint


route

public RouteType route(RouteType route)

intercept

public RoutesType intercept(DelegateProcessor interceptor)

intercept

public InterceptType intercept()

intercept

public OtherwiseType intercept(Predicate predicate)

exception

public ExceptionType exception(Class exceptionType)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.