Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.builder | |
org.apache.camel.impl |
Default implementation classes for Camel Core
|
org.apache.camel.impl.cluster |
Base classes and Implementation for Camel Cluster
|
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.model.rest |
The JAXB POJOs for the REST DSL
|
org.apache.camel.spi |
Service Provider Interfaces used internally by the Camel runtime which are plugin strategies.
|
Modifier and Type | Method and Description |
---|---|
RouteDefinition |
CamelContext.getRouteDefinition(String id)
Gets the route definition with the given id
|
Modifier and Type | Method and Description |
---|---|
List<RouteDefinition> |
CamelContext.getRouteDefinitions()
Returns a list of the current route definitions
|
Modifier and Type | Method and Description |
---|---|
void |
CamelContext.addRouteDefinition(RouteDefinition routeDefinition)
Add a route definition to the context
|
void |
CamelContext.removeRouteDefinition(RouteDefinition routeDefinition)
Removes a route definition from the CamelContext - stopping any previously running
routes if any of them are actively running
|
void |
CamelContext.startRoute(RouteDefinition route)
Deprecated.
favor using
CamelContext.startRoute(String) |
void |
CamelContext.stopRoute(RouteDefinition route)
Deprecated.
favor using
CamelContext.stopRoute(String) |
Modifier and Type | Method and Description |
---|---|
void |
CamelContext.addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Adds a collection of route definitions to the context
|
void |
CamelContext.removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Removes a collection of route definitions from the CamelContext - stopping any previously running
routes if any of them are actively running
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static AdviceWithTask |
AdviceWithTasks.afterById(RouteDefinition route,
String id,
ProcessorDefinition<?> after,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.afterByToString(RouteDefinition route,
String toString,
ProcessorDefinition<?> after,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.afterByToUri(RouteDefinition route,
String toUri,
ProcessorDefinition<?> after,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.afterByType(RouteDefinition route,
Class<?> type,
ProcessorDefinition<?> after,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.beforeById(RouteDefinition route,
String id,
ProcessorDefinition<?> before,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.beforeByToString(RouteDefinition route,
String toString,
ProcessorDefinition<?> before,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.beforeByToUri(RouteDefinition route,
String toUri,
ProcessorDefinition<?> before,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.beforeByType(RouteDefinition route,
Class<?> type,
ProcessorDefinition<?> before,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
protected void |
RouteBuilder.configureRoute(RouteDefinition route) |
static AdviceWithTask |
AdviceWithTasks.removeById(RouteDefinition route,
String id,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.removeByToString(RouteDefinition route,
String toString,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.removeByToUri(RouteDefinition route,
String toUri,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.removeByType(RouteDefinition route,
Class<?> type,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.replaceById(RouteDefinition route,
String id,
ProcessorDefinition<?> replace,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.replaceByToString(RouteDefinition route,
String toString,
ProcessorDefinition<?> replace,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.replaceByToUri(RouteDefinition route,
String toUri,
ProcessorDefinition<?> replace,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
static AdviceWithTask |
AdviceWithTasks.replaceByType(RouteDefinition route,
Class<?> type,
ProcessorDefinition<?> replace,
boolean selectFirst,
boolean selectLast,
int selectFrom,
int selectTo,
int maxDeep) |
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.
|
Modifier and Type | Method and Description |
---|---|
RouteDefinition |
DefaultRouteContext.getRoute() |
RouteDefinition |
RouteService.getRouteDefinition() |
RouteDefinition |
DefaultCamelContext.getRouteDefinition(String id) |
Modifier and Type | Method and Description |
---|---|
List<RouteDefinition> |
DefaultCamelContext.getRouteDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCamelContext.addRouteDefinition(RouteDefinition routeDefinition) |
RoutePolicy |
DurationRoutePolicyFactory.createRoutePolicy(CamelContext camelContext,
String routeId,
RouteDefinition route) |
void |
DefaultCamelContext.removeRouteDefinition(RouteDefinition routeDefinition) |
void |
DefaultCamelContext.startRoute(RouteDefinition route) |
void |
DefaultCamelContext.stopRoute(RouteDefinition route) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCamelContext.addRouteDefinitions(Collection<RouteDefinition> routeDefinitions) |
void |
DefaultCamelContext.removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions) |
protected void |
DefaultCamelContext.startRouteDefinitions(Collection<RouteDefinition> list) |
Constructor and Description |
---|
DefaultRouteContext(CamelContext camelContext,
RouteDefinition route,
FromDefinition from,
Collection<Route> routes) |
RouteService(DefaultCamelContext camelContext,
RouteDefinition routeDefinition,
List<RouteContext> routeContexts,
List<Route> routes) |
Modifier and Type | Method and Description |
---|---|
RoutePolicy |
ClusteredRoutePolicyFactory.createRoutePolicy(CamelContext camelContext,
String routeId,
RouteDefinition route) |
boolean |
ClusteredRouteFilter.test(CamelContext camelContext,
String routeId,
RouteDefinition route)
Test if the route should be clustered or not.
|
boolean |
ClusteredRouteFilters.IsAutoStartup.test(CamelContext camelContext,
String routeId,
RouteDefinition route) |
boolean |
ClusteredRouteFilters.BlackList.test(CamelContext camelContext,
String routeId,
RouteDefinition route) |
Modifier and Type | Method and Description |
---|---|
List<RouteDefinition> |
MainSupport.getRouteDefinitions() |
Modifier and Type | Method and Description |
---|---|
RouteDefinition |
RouteDefinition.adviceWith(CamelContext camelContext,
RouteBuilder builder) |
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 |
RouteDefinition.fromEndpoint(Endpoint endpoint) |
static RouteDefinition |
RouteDefinition.fromUri(String uri) |
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.inputType(Class clazz)
Declare the expected data type of the input message by Java class.
|
RouteDefinition |
RouteDefinition.inputType(String urn)
Declare the expected data type of the input message.
|
RouteDefinition |
RouteDefinition.inputTypeWithValidate(Class clazz)
Declare the expected data type of the input message by Java class with content validation enabled.
|
RouteDefinition |
RouteDefinition.inputTypeWithValidate(String urn)
Declare the expected data type of the input message with content validation enabled.
|
RouteDefinition |
RouteDefinition.logMask()
Enable security mask for Logging on this route.
|
RouteDefinition |
RouteDefinition.logMask(String logMask)
Sets whether security mask for logging is enabled on this route.
|
RouteDefinition |
RouteDefinition.messageHistory()
Enable message history for this route.
|
RouteDefinition |
RouteDefinition.messageHistory(String 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 |
RouteDefinition.outputType(Class clazz)
Declare the expected data type of the output message by Java class.
|
RouteDefinition |
RouteDefinition.outputType(String urn)
Declare the expected data type of the output message.
|
RouteDefinition |
RouteDefinition.outputTypeWithValidate(Class clazz)
Declare the expected data type of the ouput message by Java class with content validation enabled.
|
RouteDefinition |
RouteDefinition.outputTypeWithValidate(String urn)
Declare the expected data type of the output message with content validation enabled.
|
RouteDefinition |
RoutesDefinition.route()
Creates a new route
|
RouteDefinition |
RoutesDefinition.route(RouteDefinition route)
Creates a new route using the given route
|
RouteDefinition |
RouteDefinition.routeDescription(String description)
Set the route description for this 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.streamCaching(String streamCache)
Enable stream caching for this route.
|
RouteDefinition |
RouteDefinition.tracing()
Enable tracing for this route.
|
RouteDefinition |
RouteDefinition.tracing(String tracing)
Enable tracing for this route.
|
Modifier and Type | Method and Description |
---|---|
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(ModelCamelContext camelContext) |
static List<RouteDefinition> |
RouteContextRefDefinitionHelper.lookupRoutes(ModelCamelContext camelContext,
String ref)
Lookup the routes from the
RouteContextRefDefinition . |
Modifier and Type | Method and Description |
---|---|
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.gatherAllEndpointUris(CamelContext camelContext,
RouteDefinition route,
boolean includeInputs,
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(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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static RouteDefinition |
RestDefinition.asRouteApiDefinition(CamelContext camelContext,
RestConfiguration configuration)
Transforms the rest api configuration into a
RouteDefinition which
Camel routing engine uses to service the rest api docs. |
RouteDefinition |
VerbDefinition.getRoute() |
RouteDefinition |
RestDefinition.route() |
Modifier and Type | Method and Description |
---|---|
List<RouteDefinition> |
RestDefinition.asRouteDefinition(CamelContext camelContext)
Transforms this REST definition into a list of
RouteDefinition which
Camel routing engine can add and run. |
List<RouteDefinition> |
RestDefinition.asRouteDefinition(CamelContext camelContext,
RestConfiguration restConfiguration)
Transforms this REST definition into a list of
RouteDefinition which
Camel routing engine can add and run. |
Modifier and Type | Method and Description |
---|---|
void |
VerbDefinition.setRoute(RouteDefinition route) |
Modifier and Type | Method and Description |
---|---|
RouteDefinition |
RouteContext.getRoute()
Get the route type
|
Modifier and Type | Method and Description |
---|---|
RoutePolicy |
RoutePolicyFactory.createRoutePolicy(CamelContext camelContext,
String routeId,
RouteDefinition route)
Creates a new
RoutePolicy which will be assigned to the given route. |
Apache Camel