Uses of Class
org.apache.camel.model.RouteDefinition
-
Packages that use RouteDefinition Package Description org.apache.camel.builder org.apache.camel.model The JAXB POJOs for the XML Configuration of the routing rules.org.apache.camel.model.rest The JAXB POJOs for the REST DSL -
-
Uses of RouteDefinition in org.apache.camel.builder
Methods in org.apache.camel.builder that return RouteDefinition Modifier and Type Method Description static 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.static RouteDefinitionAdviceWithRouteBuilder. adviceWith(org.apache.camel.CamelContext camelContext, Object routeId, boolean logXml, org.apache.camel.util.function.ThrowingConsumer<AdviceWithRouteBuilder,Exception> builder)static RouteDefinitionAdviceWithRouteBuilder. adviceWith(org.apache.camel.CamelContext camelContext, Object routeId, org.apache.camel.util.function.ThrowingConsumer<AdviceWithRouteBuilder,Exception> builder)Deprecated.RouteDefinitionRouteBuilder. from(String uri)Creates a new route from the given URI inputRouteDefinitionRouteBuilder. from(EndpointConsumerBuilder endpointDefinition)RouteDefinitionRouteBuilder. from(org.apache.camel.Endpoint endpoint)Creates a new route from the given endpointRouteDefinitionRouteBuilder. fromF(String uri, Object... args)Creates a new route from the given URI inputRouteDefinitionAdviceWithRouteBuilder. getOriginalRoute()Gets the original route to be adviced.Methods in org.apache.camel.builder with parameters of type RouteDefinition Modifier and Type Method Description static 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 RouteDefinition Modifier and Type Method Description RouteDefinitionModelCamelContext. adviceWith(RouteDefinition definition, AdviceWithRouteBuilder builder)RouteDefinitionRouteTemplateDefinition.Converter. apply(RouteTemplateDefinition in, Map<String,Object> parameters)Convert aRouteTemplateDefinitionto aRouteDefinition.RouteDefinitionRouteTemplateDefinition. asRouteDefinition()Creates a copy of this template as aRouteDefinitionwhich can be used to add as a new route.RouteDefinitionRouteDefinition. autoStartup(boolean autoStartup)Sets the auto startup property on this route.RouteDefinitionRouteDefinition. autoStartup(String autoStartup)Sets the auto startup property on this route.protected RouteDefinitionRoutesDefinition. createRoute()RouteDefinitionRouteDefinition. delayer(long delay)Enable delayer for this route.RouteDefinitionRouteDefinition. errorHandler(String ref)Installs the given error handler builder.RouteDefinitionRouteDefinition. errorHandler(org.apache.camel.ErrorHandlerFactory errorHandlerBuilder)Installs the given error handler builder.RouteDefinitionRouteDefinition. from(String uri)Creates an input to the routeRouteDefinitionRouteDefinition. from(EndpointConsumerBuilder endpoint)Creates an input to the routeRouteDefinitionRouteDefinition. from(org.apache.camel.Endpoint endpoint)Creates an input to the routeRouteDefinitionRoutesDefinition. from(String uri)Creates a new route from the given URI inputRouteDefinitionRoutesDefinition. from(EndpointConsumerBuilder endpoint)RouteDefinitionRoutesDefinition. from(org.apache.camel.Endpoint endpoint)Creates a new route from the given endpointRouteDefinitionRouteTemplateDefinition. from(String uri)Creates an input to the routeRouteDefinitionRouteTemplateDefinition. from(EndpointConsumerBuilder endpoint)Creates an input to the routeRouteDefinitionRouteTemplateDefinition. from(org.apache.camel.Endpoint endpoint)Creates an input to the routestatic RouteDefinitionRouteDefinition. fromEndpoint(org.apache.camel.Endpoint endpoint)static RouteDefinitionRouteDefinition. fromUri(String uri)static RouteDefinitionProcessorDefinitionHelper. getRoute(org.apache.camel.NamedNode node)Gets the route definition the given node belongs to.RouteDefinitionRouteTemplateDefinition. getRoute()RouteDefinitionModel. getRouteDefinition(String id)Gets the route definition with the given idRouteDefinitionRouteDefinition. group(String name)Set the group name for this routeRouteDefinitionRouteDefinition. inputType(Class clazz)Declare the expected data type of the input message by Java class.RouteDefinitionRouteDefinition. inputType(String urn)Declare the expected data type of the input message.RouteDefinitionRouteDefinition. inputTypeWithValidate(Class clazz)Declare the expected data type of the input message by Java class with content validation enabled.RouteDefinitionRouteDefinition. inputTypeWithValidate(String urn)Declare the expected data type of the input message with content validation enabled.RouteDefinitionRouteDefinition. logMask()Enable security mask for Logging on this route.RouteDefinitionRouteDefinition. logMask(String logMask)Sets whether security mask for logging is enabled on this route.RouteDefinitionRouteDefinition. messageHistory()Enable message history for this route.RouteDefinitionRouteDefinition. messageHistory(String messageHistory)Enable message history for this route.RouteDefinitionRouteDefinition. noAutoStartup()Disables this route from being auto started when Camel starts.RouteDefinitionRouteDefinition. noDelayer()Disable delayer for this route.RouteDefinitionRouteDefinition. noMessageHistory()Disable message history for this route.RouteDefinitionRouteDefinition. noStreamCaching()Disable stream caching for this route.RouteDefinitionRouteDefinition. noTracing()Disable tracing for this route.RouteDefinitionRouteDefinition. outputType(Class clazz)Declare the expected data type of the output message by Java class.RouteDefinitionRouteDefinition. outputType(String urn)Declare the expected data type of the output message.RouteDefinitionRouteDefinition. outputTypeWithValidate(Class clazz)Declare the expected data type of the ouput message by Java class with content validation enabled.RouteDefinitionRouteDefinition. outputTypeWithValidate(String urn)Declare the expected data type of the output message with content validation enabled.RouteDefinitionRouteDefinition. 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.RouteDefinitionRoutesDefinition. route()Creates a new route Prefer to use the from methods when creating a new route.RouteDefinitionRoutesDefinition. route(RouteDefinition route)Creates a new route using the given route.RouteDefinitionRouteTemplateDefinition. route()To define the route in the templateRouteDefinitionRouteDefinition. routeConfigurationId(String routeConfigurationId)The route configuration id or pattern this route should use for configuration.RouteDefinitionRouteDefinition. routeDescription(String description)Set the route description for this routeRouteDefinitionRouteDefinition. routeGroup(String group)Set the route group for this routeRouteDefinitionRouteDefinition. routeId(String id)Set the route id for this routeRouteDefinitionRouteDefinition. routePolicy(Supplier<org.apache.camel.spi.RoutePolicy> policy)Configures route policy for this routeRouteDefinitionRouteDefinition. routePolicy(org.apache.camel.spi.RoutePolicy... policies)Configures route policies for this routeRouteDefinitionRouteDefinition. routePolicyRef(String routePolicyRef)Configures a route policy for this routeRouteDefinitionRouteDefinition. routeProperty(String key, String value)Adds a custom property on the route.RouteDefinitionRouteDefinition. shutdownRoute(String shutdownRoute)Configures a shutdown route option.RouteDefinitionRouteDefinition. shutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)Configures a shutdown route option.RouteDefinitionRouteDefinition. shutdownRunningTask(String shutdownRunningTask)Configures a shutdown running task option.RouteDefinitionRouteDefinition. shutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)Configures a shutdown running task option.RouteDefinitionRouteDefinition. startupOrder(int order)Configures the startup order for this routeRouteDefinitionRouteDefinition. streamCaching()Enable stream caching for this route.RouteDefinitionRouteDefinition. streamCaching(String streamCache)Enable stream caching for this route.RouteDefinitionRouteDefinition. tracing()Enable tracing for this route.RouteDefinitionRouteDefinition. tracing(String tracing)Enable tracing for this route.Methods in org.apache.camel.model that return types with arguments of type RouteDefinition Modifier and Type Method Description static 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).List<RouteDefinition>Model. getRouteDefinitions()Returns a list of the current route definitionsFunction<RouteDefinition,Boolean>Model. getRouteFilter()Gets the current route filterList<RouteDefinition>RouteContainer. getRoutes()Returns the routesList<RouteDefinition>RoutesDefinition. getRoutes()List<RouteDefinition>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 RouteDefinition Modifier and Type Method Description voidModel. addRouteDefinition(RouteDefinition routeDefinition)Add a route definition to the contextRouteDefinitionModelCamelContext. adviceWith(RouteDefinition definition, AdviceWithRouteBuilder builder)BooleanRouteFilters. apply(RouteDefinition route)static Set<String>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.static Set<String>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 runningRouteDefinitionRoutesDefinition. 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.Method parameters in org.apache.camel.model with type arguments of type RouteDefinition Modifier and Type Method Description voidModel. 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. -
Uses of RouteDefinition in org.apache.camel.model.rest
Methods in org.apache.camel.model.rest that return RouteDefinition Modifier and Type Method Description static 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 RouteDefinition Modifier and Type Method Description List<RouteDefinition>RestDefinition. asRouteDefinition(org.apache.camel.CamelContext camelContext)Transforms this REST definition into a list ofRouteDefinitionwhich Camel routing engine can add and run.
-