Uses of Class
org.apache.camel.model.RouteDefinition
Packages that use RouteDefinition
Package
Description
The JAXB POJOs for the XML Configuration of the routing
rules.
The JAXB POJOs representing the part of the model, which can be used to create a view of Camel application.
The JAXB POJOs for the REST DSL
-
Uses of RouteDefinition in org.apache.camel.builder
Methods in org.apache.camel.builder that return RouteDefinitionModifier and TypeMethodDescriptionstatic RouteDefinitionAdviceWith.adviceWith(Object routeId, org.apache.camel.CamelContext camelContext, RouteBuilder builder) Advices this route with the route builder.static RouteDefinitionAdviceWith.adviceWith(org.apache.camel.CamelContext camelContext, Object routeId, boolean logXml, org.apache.camel.util.function.ThrowingConsumer<AdviceWithRouteBuilder, Exception> builder) Advices this route with the route builder using a lambda expression.static RouteDefinitionAdviceWith.adviceWith(org.apache.camel.CamelContext camelContext, Object routeId, org.apache.camel.util.function.ThrowingConsumer<AdviceWithRouteBuilder, Exception> builder) Advices this route with the route builder using a lambda expression.static RouteDefinitionAdviceWith.adviceWith(RouteDefinition definition, org.apache.camel.CamelContext camelContext, RouteBuilder builder) Advices this route with the route builder.Creates a new route from the given URI inputRouteBuilder.from(EndpointConsumerBuilder endpointDefinition) RouteBuilder.from(org.apache.camel.Endpoint endpoint) Creates a new route from the given endpointCreates a new route from the given URI inputAdviceWithRouteBuilder.getOriginalRoute()Gets the original route to be adviced.Methods in org.apache.camel.builder with parameters of type RouteDefinitionModifier and TypeMethodDescriptionstatic RouteDefinitionAdviceWith.adviceWith(RouteDefinition definition, org.apache.camel.CamelContext camelContext, RouteBuilder builder) Advices this route with the route builder.static AdviceWithTaskAdviceWithTasks.afterById(RouteDefinition route, String id, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.afterByToString(RouteDefinition route, String toString, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.afterByToUri(RouteDefinition route, String toUri, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.afterByType(RouteDefinition route, Class<?> type, ProcessorDefinition<?> after, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.beforeById(RouteDefinition route, String id, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.beforeByToString(RouteDefinition route, String toString, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.beforeByToUri(RouteDefinition route, String toUri, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.beforeByType(RouteDefinition route, Class<?> type, ProcessorDefinition<?> before, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) protected voidRouteBuilder.configureRoute(RouteDefinition route) static AdviceWithTaskAdviceWithTasks.removeById(RouteDefinition route, String id, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.removeByToString(RouteDefinition route, String toString, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.removeByToUri(RouteDefinition route, String toUri, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.removeByType(RouteDefinition route, Class<?> type, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.replaceById(RouteDefinition route, String id, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.replaceByToString(RouteDefinition route, String toString, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.replaceByToUri(RouteDefinition route, String toUri, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.replaceByType(RouteDefinition route, Class<?> type, ProcessorDefinition<?> replace, boolean selectFirst, boolean selectLast, int selectFrom, int selectTo, int maxDeep) static AdviceWithTaskAdviceWithTasks.replaceFrom(RouteDefinition route, org.apache.camel.Endpoint endpoint) static AdviceWithTaskAdviceWithTasks.replaceFromWith(RouteDefinition route, String uri) voidAdviceWithRouteBuilder.setOriginalRoute(RouteDefinition originalRoute) Sets the original route to be adviced. -
Uses of RouteDefinition in org.apache.camel.model
Methods in org.apache.camel.model that return RouteDefinitionModifier and TypeMethodDescriptionRouteTemplateDefinition.Converter.apply(RouteTemplateDefinition in, Map<String, Object> parameters) Convert aRouteTemplateDefinitionto aRouteDefinition.RouteTemplateDefinition.asRouteDefinition()Creates a copy of this template as aRouteDefinitionwhich can be used to add as a new route.RouteDefinition.autoStartup(boolean autoStartup) Sets the auto startup property on this route.RouteDefinition.autoStartup(String autoStartup) Sets the auto startup property on this route.protected RouteDefinitionRoutesDefinition.createRoute()RouteDefinition.delayer(long delay) Enable delayer for this route.RouteDefinition.errorHandler(String ref) Installs the given error handler builder.RouteDefinition.errorHandler(org.apache.camel.ErrorHandlerFactory errorHandlerBuilder) Installs the given error handler builder.Creates an input to the routeRouteDefinition.from(EndpointConsumerBuilder endpoint) Creates an input to the routeRouteDefinition.from(org.apache.camel.Endpoint endpoint) Creates an input to the routeCreates a new route from the given URI inputRoutesDefinition.from(EndpointConsumerBuilder endpoint) RoutesDefinition.from(org.apache.camel.Endpoint endpoint) Creates a new route from the given endpointCreates an input to the routeRouteTemplateDefinition.from(EndpointConsumerBuilder endpoint) Creates an input to the routeRouteTemplateDefinition.from(org.apache.camel.Endpoint endpoint) Creates an input to the routestatic RouteDefinitionRouteDefinition.fromEndpoint(org.apache.camel.Endpoint endpoint) static RouteDefinitionstatic RouteDefinitionProcessorDefinitionHelper.getRoute(org.apache.camel.NamedNode node) Gets the route definition the given node belongs to.RouteTemplateDefinition.getRoute()Model.getRouteDefinition(String id) Gets the route definition with the given idSet the group name for this routeDeclare the expected data type of the input message by Java class.Declare the expected data type of the input message.RouteDefinition.inputTypeWithValidate(Class<?> clazz) Declare the expected data type of the input message by Java class with content validation enabled.RouteDefinition.inputTypeWithValidate(String urn) Declare the expected data type of the input message with content validation enabled.RouteDefinition.logMask()Enable security mask for Logging on this route.Sets whether security mask for logging is enabled on this route.RouteDefinition.messageHistory()Enable message history for this route.RouteDefinition.messageHistory(String messageHistory) Enable message history for this route.RouteDefinition.noAutoStartup()Disables this route from being auto started when Camel starts.RouteDefinition.noDelayer()Disable delayer for this route.RouteDefinition.nodePrefixId(String prefixId) Sets a prefix to use for all node ids (not route id).RouteDefinition.noMessageHistory()Disable message history for this route.RouteDefinition.noStreamCaching()Disable stream caching for this route.RouteDefinition.noTracing()Disable tracing for this route.RouteDefinition.outputType(Class<?> clazz) Declare the expected data type of the output message by Java class.RouteDefinition.outputType(String urn) Declare the expected data type of the output message.RouteDefinition.outputTypeWithValidate(Class<?> clazz) Declare the expected data type of the output message by Java class with content validation enabled.RouteDefinition.outputTypeWithValidate(String urn) Declare the expected data type of the output message with content validation enabled.RouteDefinition.precondition(String precondition) Sets the predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.RoutesDefinition.route()Creates a new route Prefer to use the from methods when creating a new route.RoutesDefinition.route(RouteDefinition route) Creates a new route using the given route.RouteTemplateDefinition.route()To define the route in the templateRouteDefinition.routeConfigurationId(String routeConfigurationId) The route configuration id or pattern this route should use for configuration.RouteDefinition.routeDescription(String description) Set the route description for this routeRouteDefinition.routeGroup(String group) Set the route group for this routeSet the route id for this routeRouteDefinition.routePolicy(Supplier<org.apache.camel.spi.RoutePolicy> policy) Configures route policy for this routeRouteDefinition.routePolicy(org.apache.camel.spi.RoutePolicy... policies) Configures route policies for this routeRouteDefinition.routePolicyRef(String routePolicyRef) Configures a route policy for this routeRouteDefinition.routeProperty(String key, String value) Adds a custom property on the route.RouteDefinition.shutdownRoute(String shutdownRoute) Configures a shutdown route option.RouteDefinition.shutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute) Configures a shutdown route option.RouteDefinition.shutdownRunningTask(String shutdownRunningTask) Configures a shutdown running task option.RouteDefinition.shutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) Configures a shutdown running task option.RouteDefinition.startupOrder(int order) Configures the startup order for this routeRouteDefinition.streamCaching()Enable stream caching for this route.RouteDefinition.streamCaching(String streamCache) Enable stream caching for this route.RouteDefinition.tracing()Enable tracing for this route.Enable tracing for this route.Methods in org.apache.camel.model that return types with arguments of type RouteDefinitionModifier and TypeMethodDescriptionstatic Function<RouteDefinition,Boolean> RouteFilters.filterByPattern(String include, String exclude) Used for filtering routes routes matching the given pattern, which follows the following rules: - Match by route id - Match by route input endpoint uri The matching is using exact match, by wildcard and regular expression as documented byPatternHelper.matchPattern(String, String).Model.getRouteDefinitions()Returns a list of the current route definitionsModel.getRouteFilter()Gets the current route filterRouteContainer.getRoutes()Returns the routesRoutesDefinition.getRoutes()RouteContextRefDefinition.lookupRoutes(org.apache.camel.CamelContext camelContext) static List<RouteDefinition>RouteContextRefDefinitionHelper.lookupRoutes(org.apache.camel.CamelContext camelContext, String ref) Lookup the routes from theRouteContextRefDefinition.Methods in org.apache.camel.model with parameters of type RouteDefinitionModifier and TypeMethodDescriptionvoidModel.addRouteDefinition(RouteDefinition routeDefinition) Add a route definition to the contextRouteFilters.apply(RouteDefinition route) RouteDefinitionHelper.gatherAllEndpointUris(org.apache.camel.CamelContext camelContext, RouteDefinition route, boolean includeInput, boolean includeOutputs, boolean includeDynamic) Gather all the endpoint uri's the route is using from the EIPs that has a static or dynamic endpoint defined.RouteDefinitionHelper.gatherAllStaticEndpointUris(org.apache.camel.CamelContext camelContext, 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.voidModelLifecycleStrategy.onAddRouteDefinition(RouteDefinition routeDefinition) Notification when a route definition is being added toCamelContextvoidModelLifecycleStrategySupport.onAddRouteDefinition(RouteDefinition routeDefinition) voidModelLifecycleStrategy.onRemoveRouteDefinition(RouteDefinition routeDefinition) Notification when a route definition is being removed fromCamelContextvoidModelLifecycleStrategySupport.onRemoveRouteDefinition(RouteDefinition routeDefinition) static voidRouteDefinitionHelper.prepareRoute(org.apache.camel.CamelContext context, RouteDefinition route) Prepares the route.static voidRouteDefinitionHelper.prepareRoute(org.apache.camel.CamelContext context, RouteDefinition route, ErrorHandlerDefinition errorHandler, 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 onCompletionsvoidRoutesDefinition.prepareRoute(RouteDefinition route) static voidRouteDefinitionHelper.prepareRouteForInit(RouteDefinition route, List<ProcessorDefinition<?>> abstracts, List<ProcessorDefinition<?>> lower) voidModel.removeRouteDefinition(RouteDefinition routeDefinition) Removes a route definition from the context - stopping any previously running routes if any of them are actively runningRoutesDefinition.route(RouteDefinition route) Creates a new route using the given route.static voidRouteDefinitionHelper.sanityCheckRoute(RouteDefinition route) Sanity check the route, that it has input(s) and outputs.voidRouteTemplateDefinition.setRoute(RouteDefinition route) static StringRouteDefinitionHelper.validateUniqueIds(RouteDefinition target, List<RouteDefinition> routes) Validates that the target route has no duplicate id's from any of the existing routes.static StringRouteDefinitionHelper.validateUniqueIds(RouteDefinition target, List<RouteDefinition> routes, String prefixId) 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 RouteDefinitionModifier and TypeMethodDescriptionvoidModel.addRouteDefinitions(Collection<RouteDefinition> routeDefinitions) Adds a collection of route definitions to the contextstatic voidRouteDefinitionHelper.forceAssignIds(org.apache.camel.CamelContext context, List<RouteDefinition> routes) Force assigning ids to the routesvoidModel.removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions) Removes a collection of route definitions from the context - stopping any previously running routes if any of them are actively runningvoidModel.setRouteFilter(Function<RouteDefinition, Boolean> filter) Sets a custom route filter to use for filtering unwanted routes when routes are added.voidRouteContainer.setRoutes(List<RouteDefinition> routes) Sets the routes to usevoidRoutesDefinition.setRoutes(List<RouteDefinition> routes) voidModelCamelContext.startRouteDefinitions(List<RouteDefinition> routeDefinitions) Start the given set of routes.static StringRouteDefinitionHelper.validateUniqueIds(RouteDefinition target, List<RouteDefinition> routes) Validates that the target route has no duplicate id's from any of the existing routes.static StringRouteDefinitionHelper.validateUniqueIds(RouteDefinition target, List<RouteDefinition> routes, String prefixId) Validates that the target route has no duplicate id's from any of the existing routes. -
Uses of RouteDefinition in org.apache.camel.model.app
Methods in org.apache.camel.model.app that return types with arguments of type RouteDefinitionMethod parameters in org.apache.camel.model.app with type arguments of type RouteDefinition -
Uses of RouteDefinition in org.apache.camel.model.rest
Methods in org.apache.camel.model.rest that return RouteDefinitionModifier and TypeMethodDescriptionstatic RouteDefinitionRestDefinition.asRouteApiDefinition(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.RestConfiguration configuration) Transforms the rest api configuration into aRouteDefinitionwhich Camel routing engine uses to service the rest api docs.Methods in org.apache.camel.model.rest that return types with arguments of type RouteDefinitionModifier and TypeMethodDescriptionRestDefinition.asRouteDefinition(org.apache.camel.CamelContext camelContext) Transforms this REST definition into a list ofRouteDefinitionwhich Camel routing engine can add and run.