Uses of Class
org.apache.camel.model.RouteDefinition

Packages that use RouteDefinition
org.apache.camel The core Camel API. 
org.apache.camel.builder The Camel Domain Specific Language for creating Routes, Predicates, Expressions and Error Handlers
org.apache.camel.impl Default implementation classes for Camel Core 
org.apache.camel.main Application level classes that can be used to instantiate camel. 
org.apache.camel.model The JAXB POJOs for the XML Configuration of the routing rules. 
org.apache.camel.spi Service Provider Interfaces used internally by the Camel runtime which are plugin strategies. 
org.apache.camel.view Helper class to help with the Visualisation of Routes 
 

Uses of RouteDefinition in org.apache.camel
 

Methods in org.apache.camel that return RouteDefinition
 RouteDefinition CamelContext.getRouteDefinition(String id)
          Deprecated. use ModelCamelContext.getRouteDefinition(String)
 

Methods in org.apache.camel that return types with arguments of type RouteDefinition
 List<RouteDefinition> CamelContext.getRouteDefinitions()
          Deprecated. use ModelCamelContext.getRouteDefinitions()
 

Methods in org.apache.camel with parameters of type RouteDefinition
 void CamelContext.addRouteDefinition(RouteDefinition routeDefinition)
          Deprecated. use ModelCamelContext.addRouteDefinition(org.apache.camel.model.RouteDefinition)
 void CamelContext.removeRouteDefinition(RouteDefinition routeDefinition)
          Deprecated. use ModelCamelContext.removeRouteDefinition(org.apache.camel.model.RouteDefinition)
 void CamelContext.startRoute(RouteDefinition route)
          Deprecated. use ModelCamelContext.startRoute(org.apache.camel.model.RouteDefinition)
 void CamelContext.stopRoute(RouteDefinition route)
          Deprecated. use ModelCamelContext.stopRoute(org.apache.camel.model.RouteDefinition)
 

Method parameters in org.apache.camel with type arguments of type RouteDefinition
 void CamelContext.addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
          Deprecated. use ModelCamelContext.addRouteDefinitions(java.util.Collection)
 void CamelContext.removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
          Deprecated. use ModelCamelContext.removeRouteDefinitions(java.util.Collection)
 

Uses of RouteDefinition in org.apache.camel.builder
 

Methods in org.apache.camel.builder that return RouteDefinition
 RouteDefinition RouteBuilder.from(Endpoint... endpoints)
          Creates a new route from the given endpoint
 RouteDefinition RouteBuilder.from(Endpoint endpoint)
          Creates a new route from the given endpoint
 RouteDefinition RouteBuilder.from(String... uris)
          Creates a new route from the given URIs input
 RouteDefinition RouteBuilder.from(String uri)
          Creates a new route from the given URI input
 RouteDefinition RouteBuilder.fromF(String uri, Object... args)
          Creates a new route from the given URI input
 RouteDefinition AdviceWithRouteBuilder.getOriginalRoute()
          Gets the original route we advice.
 

Methods in org.apache.camel.builder with parameters of type RouteDefinition
static AdviceWithTask AdviceWithTasks.afterById(RouteDefinition route, String id, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.afterByToString(RouteDefinition route, String toString, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.afterByType(RouteDefinition route, Class<?> type, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.beforeById(RouteDefinition route, String id, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.beforeByToString(RouteDefinition route, String toString, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.beforeByType(RouteDefinition route, Class<?> type, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
protected  void RouteBuilder.configureRoute(RouteDefinition route)
           
static AdviceWithTask AdviceWithTasks.removeById(RouteDefinition route, String id, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.removeByToString(RouteDefinition route, String toString, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.removeByType(RouteDefinition route, Class<?> type, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.replaceById(RouteDefinition route, String id, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.replaceByToString(RouteDefinition route, String toString, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.replaceByType(RouteDefinition route, Class<?> type, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo)
           
static AdviceWithTask AdviceWithTasks.replaceFrom(RouteDefinition route, Endpoint endpoint)
           
static AdviceWithTask AdviceWithTasks.replaceFromWith(RouteDefinition route, String uri)
           
 void AdviceWithRouteBuilder.setOriginalRoute(RouteDefinition originalRoute)
          Sets the original route which we advice.
 

Uses of RouteDefinition in org.apache.camel.impl
 

Methods in org.apache.camel.impl that return RouteDefinition
 RouteDefinition DefaultRouteContext.getRoute()
           
 RouteDefinition RouteService.getRouteDefinition()
           
 RouteDefinition DefaultCamelContext.getRouteDefinition(String id)
           
 

Methods in org.apache.camel.impl that return types with arguments of type RouteDefinition
 List<RouteDefinition> DefaultCamelContext.getRouteDefinitions()
           
 

Methods in org.apache.camel.impl with parameters of type RouteDefinition
 void DefaultCamelContext.addRouteDefinition(RouteDefinition routeDefinition)
           
 void DefaultCamelContext.removeRouteDefinition(RouteDefinition routeDefinition)
           
 void DefaultCamelContext.startRoute(RouteDefinition route)
           
 void DefaultCamelContext.stopRoute(RouteDefinition route)
           
 

Method parameters in org.apache.camel.impl with type arguments of type RouteDefinition
 void DefaultCamelContext.addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
           
 void DefaultCamelContext.removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
           
protected  void DefaultCamelContext.startRouteDefinitions(Collection<RouteDefinition> list)
           
 

Constructors in org.apache.camel.impl with parameters of type RouteDefinition
DefaultRouteContext(CamelContext camelContext, RouteDefinition route, FromDefinition from, Collection<Route> routes)
           
RouteService(DefaultCamelContext camelContext, RouteDefinition routeDefinition, List<RouteContext> routeContexts, List<Route> routes)
           
 

Uses of RouteDefinition in org.apache.camel.main
 

Methods in org.apache.camel.main that return types with arguments of type RouteDefinition
 List<RouteDefinition> MainSupport.getRouteDefinitions()
           
 

Uses of RouteDefinition in org.apache.camel.model
 

Methods in org.apache.camel.model that return RouteDefinition
 RouteDefinition RouteDefinition.adviceWith(CamelContext camelContext, RouteBuilder builder)
          Deprecated. 
 RouteDefinition RouteDefinition.adviceWith(ModelCamelContext camelContext, RouteBuilder builder)
          Advices this route with the route builder.
 RouteDefinition RouteDefinition.autoStartup(boolean autoStartup)
          Sets the auto startup property on this route.
 RouteDefinition RouteDefinition.autoStartup(String autoStartup)
          Sets the auto startup property on this route.
protected  RouteDefinition RoutesDefinition.createRoute()
           
 RouteDefinition RouteDefinition.delayer(long delay)
          Enable delayer for this route.
 RouteDefinition RouteDefinition.errorHandler(ErrorHandlerFactory errorHandlerBuilder)
          Installs the given error handler builder.
 RouteDefinition RouteDefinition.from(Endpoint... endpoints)
          Creates inputs to the route
 RouteDefinition RoutesDefinition.from(Endpoint... endpoints)
          Creates a new route from the given endpoints
 RouteDefinition RouteDefinition.from(Endpoint endpoint)
          Creates an input to the route
 RouteDefinition RoutesDefinition.from(Endpoint endpoint)
          Creates a new route from the given endpoint
 RouteDefinition RouteDefinition.from(String... uris)
          Creates inputs to the route
 RouteDefinition RoutesDefinition.from(String... uris)
          Creates a new route from the given URI inputs
 RouteDefinition RouteDefinition.from(String uri)
          Creates an input to the route
 RouteDefinition RoutesDefinition.from(String uri)
          Creates a new route from the given URI input
static RouteDefinition ProcessorDefinitionHelper.getRoute(ProcessorDefinition<?> node)
          Gets the route definition the given node belongs to.
 RouteDefinition ModelCamelContext.getRouteDefinition(String id)
          Gets the route definition with the given id
 RouteDefinition RouteDefinition.group(String name)
          Set the group name for this route
 RouteDefinition RouteDefinition.handleFault()
          Enable handle fault for this route.
 RouteDefinition RouteDefinition.messageHistory()
          Enable message history for this route.
 RouteDefinition RouteDefinition.noAutoStartup()
          Disables this route from being auto started when Camel starts.
 RouteDefinition RouteDefinition.noDelayer()
          Disable delayer for this route.
 RouteDefinition RouteDefinition.noHandleFault()
          Disable handle fault for this route.
 RouteDefinition RouteDefinition.noMessageHistory()
          Disable message history for this route.
 RouteDefinition RouteDefinition.noStreamCaching()
          Disable stream caching for this route.
 RouteDefinition RouteDefinition.noTracing()
          Disable tracing for this route.
 RouteDefinition RoutesDefinition.route()
          Creates a new route
 RouteDefinition RoutesDefinition.route(RouteDefinition route)
          Creates a new route using the given route
 RouteDefinition RouteDefinition.routeId(String id)
          Set the route id for this route
 RouteDefinition RouteDefinition.routePolicy(RoutePolicy... policies)
          Configures route policies for this route
 RouteDefinition RouteDefinition.routePolicyRef(String routePolicyRef)
          Configures a route policy for this route
 RouteDefinition RouteDefinition.shutdownRoute(ShutdownRoute shutdownRoute)
          Configures a shutdown route option.
 RouteDefinition RouteDefinition.shutdownRunningTask(ShutdownRunningTask shutdownRunningTask)
          Configures a shutdown running task option.
 RouteDefinition RouteDefinition.startupOrder(int order)
          Configures the startup order for this route

Camel will reorder routes and star them ordered by 0..N where 0 is the lowest number and N the highest number.

 RouteDefinition RouteDefinition.streamCaching()
          Enable stream caching for this route.
 RouteDefinition RouteDefinition.tracing()
          Enable tracing for this route.
 

Methods in org.apache.camel.model that return types with arguments of type RouteDefinition
 List<RouteDefinition> ModelCamelContext.getRouteDefinitions()
          Returns a list of the current route definitions
 List<RouteDefinition> RoutesDefinition.getRoutes()
           
 List<RouteDefinition> RouteContainer.getRoutes()
          Returns the routes
 List<RouteDefinition> RouteContextRefDefinition.lookupRoutes(CamelContext camelContext)
           
static List<RouteDefinition> RouteContextRefDefinitionHelper.lookupRoutes(CamelContext camelContext, String ref)
          Lookup the routes from the RouteContextRefDefinition.
 

Methods in org.apache.camel.model with parameters of type RouteDefinition
 void ModelCamelContext.addRouteDefinition(RouteDefinition routeDefinition)
          Add a route definition to the context

Important: Each route in the same CamelContext must have an unique route id.

static Set<String> RouteDefinitionHelper.gatherAllStaticEndpointUris(RouteDefinition route, boolean includeInputs, boolean includeOutputs)
          Gather all the endpoint uri's the route is using from the EIPs that has a static endpoint defined.
static void RouteDefinitionHelper.prepareRoute(ModelCamelContext context, RouteDefinition route)
          Prepares the route.
static void RouteDefinitionHelper.prepareRoute(ModelCamelContext context, RouteDefinition route, List<OnExceptionDefinition> onExceptions, List<InterceptDefinition> intercepts, List<InterceptFromDefinition> interceptFromDefinitions, List<InterceptSendToEndpointDefinition> interceptSendToEndpointDefinitions, List<OnCompletionDefinition> onCompletions)
          Prepares the route which supports context scoped features such as onException, interceptors and onCompletions

This method does not mark the route as prepared afterwards.

static void RouteDefinitionHelper.prepareRouteForInit(RouteDefinition route, List<ProcessorDefinition<?>> abstracts, List<ProcessorDefinition<?>> lower)
           
 void ModelCamelContext.removeRouteDefinition(RouteDefinition routeDefinition)
          Removes a route definition from the context - stopping any previously running routes if any of them are actively running
 RouteDefinition RoutesDefinition.route(RouteDefinition route)
          Creates a new route using the given route
static void RouteDefinitionHelper.sanityCheckRoute(RouteDefinition route)
          Sanity check the route, that it has input(s) and outputs.
 void ModelCamelContext.startRoute(RouteDefinition route)
          Deprecated. favor using CamelContext.startRoute(String)
 void ModelCamelContext.stopRoute(RouteDefinition route)
          Deprecated. favor using CamelContext.stopRoute(String)
static String RouteDefinitionHelper.validateUniqueIds(RouteDefinition target, List<RouteDefinition> routes)
          Validates that the target route has no duplicate id's from any of the existing routes.
 

Method parameters in org.apache.camel.model with type arguments of type RouteDefinition
 void ModelCamelContext.addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
          Adds a collection of route definitions to the context

Important: Each route in the same CamelContext must have an unique route id.

static void RouteDefinitionHelper.forceAssignIds(CamelContext context, List<RouteDefinition> routes)
          Force assigning ids to the routes
 void ModelCamelContext.removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
          Removes a collection of route definitions from the context - stopping any previously running routes if any of them are actively running
 void RoutesDefinition.setRoutes(List<RouteDefinition> routes)
           
 void RouteContainer.setRoutes(List<RouteDefinition> routes)
          Sets the routes to use
static String RouteDefinitionHelper.validateUniqueIds(RouteDefinition target, List<RouteDefinition> routes)
          Validates that the target route has no duplicate id's from any of the existing routes.
 

Uses of RouteDefinition in org.apache.camel.spi
 

Methods in org.apache.camel.spi that return RouteDefinition
 RouteDefinition RouteContext.getRoute()
          Get the route type
 

Uses of RouteDefinition in org.apache.camel.view
 

Methods in org.apache.camel.view that return types with arguments of type RouteDefinition
protected  Map<String,List<RouteDefinition>> GraphSupport.createRouteGroupMap(List<RouteDefinition> routes)
           
 

Methods in org.apache.camel.view with parameters of type RouteDefinition
protected  void GraphSupport.addRouteToMap(Map<String,List<RouteDefinition>> map, RouteDefinition route)
           
protected  void RouteDotGenerator.printRoute(PrintWriter writer, RouteDefinition route, FromDefinition input)
           
protected  void XmlGraphGenerator.printRoute(PrintWriter writer, RouteDefinition route, NodeData nodeData)
           
 

Method parameters in org.apache.camel.view with type arguments of type RouteDefinition
protected  void GraphSupport.addRouteToMap(Map<String,List<RouteDefinition>> map, RouteDefinition route)
           
protected  Map<String,List<RouteDefinition>> GraphSupport.createRouteGroupMap(List<RouteDefinition> routes)
           
protected  void RouteDotGenerator.generateFile(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
protected abstract  void GraphGeneratorSupport.generateFile(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
protected  void XmlGraphGenerator.generateFile(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
 void ModelFileGenerator.marshalRoutesUsingJaxb(String fileName, List<RouteDefinition> routeTypes)
          Write the specified 'routeTypes' to 'fileName' as XML using JAXB.
protected  void RouteDotGenerator.printRoutes(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
protected  void XmlGraphGenerator.printRoutes(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
protected  void RouteDotGenerator.printRoutes(PrintWriter writer, String group, List<RouteDefinition> routes)
           
protected  void XmlGraphGenerator.printRoutes(PrintWriter writer, String group, List<RouteDefinition> routes)
           
 



Apache Camel