org.apache.camel.model
Class RoutesType
java.lang.Object
org.apache.camel.model.OptionalIdentifiedType<RoutesType>
org.apache.camel.model.RoutesType
- All Implemented Interfaces:
- RouteContainer
public class RoutesType
- extends OptionalIdentifiedType<RoutesType>
- implements RouteContainer
Represents a collection of routes
- Version:
- $Revision: 1790 $
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
createId, describe, description, description, getDescription, getId, getNodeCounter, getShortName, id, idOrCreate, setDescription, setId |
RoutesType
public RoutesType()
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 © 2010 IONA Open Source Community. All Rights Reserved.