org.apache.camel.model
Class RoutesType

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

public class RoutesType
extends OptionalIdentifiedType<RoutesType>
implements RouteContainer

Represents a collection of routes

Version:
$Revision: 63160 $

Field Summary
 
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType
nodeCounters
 
Constructor Summary
RoutesType()
           
 
Method Summary
protected  RouteType createRoute()
           
 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()
           
 ErrorHandlerBuilder getErrorHandlerBuilder()
           
 List<ExceptionType> getExceptions()
           
 Boolean getInheritErrorHandlerFlag()
           
 List<InterceptorType> getInterceptors()
           
 List<InterceptType> getIntercepts()
           
 List<RouteType> getRoutes()
          Returns the routes
 InterceptType intercept()
           
 RoutesType intercept(DelegateProcessor interceptor)
           
 ChoiceType intercept(Predicate predicate)
           
 boolean isInheritErrorHandler()
           
 ExceptionType onException(Class exceptionType)
           
 RouteType route()
          Creates a new route
 RouteType route(RouteType route)
           
 void setCamelContext(CamelContext camelContext)
           
 void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
           
 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 org.apache.camel.model.OptionalIdentifiedType
createId, describe, description, description, getDescription, getId, getNodeCounter, getShortName, id, idOrCreate, setDescription, setId
 
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

getRoutes

public List<RouteType> getRoutes()
Description copied from interface: RouteContainer
Returns the routes

Specified by:
getRoutes in interface RouteContainer

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)

isInheritErrorHandler

public boolean isInheritErrorHandler()

getInheritErrorHandlerFlag

public Boolean getInheritErrorHandlerFlag()

setInheritErrorHandlerFlag

public void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag)

getErrorHandlerBuilder

public ErrorHandlerBuilder getErrorHandlerBuilder()

setErrorHandlerBuilder

public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)

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 ChoiceType intercept(Predicate predicate)

onException

public ExceptionType onException(Class exceptionType)

createRoute

protected RouteType createRoute()


Copyright © 2008 IONA Open Source Community. All Rights Reserved.