Package org.apache.camel.model
Class RouteDefinition
java.lang.Object
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.LineNumberAware
,Block
,OutputNode
,PreconditionContainer
,org.apache.camel.NamedNode
,org.apache.camel.NamedRoute
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
,org.apache.camel.spi.ResourceAware
@Metadata(label="configuration")
public class RouteDefinition
extends OutputDefinition<RouteDefinition>
implements org.apache.camel.NamedRoute, PreconditionContainer, org.apache.camel.spi.ResourceAware
A Camel route
-
Field Summary
Fields inherited from class org.apache.camel.model.OutputDefinition
outputs
Fields inherited from class org.apache.camel.model.ProcessorDefinition
disabled, inheritErrorHandler
-
Constructor Summary
ConstructorsConstructorDescriptionRouteDefinition
(String uri) RouteDefinition
(org.apache.camel.Endpoint endpoint) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppliedRouteConfigurationId
(String routeConfigurationId) This is used internally by Camel to keep track which route configurations is applied when creating a route from this model.autoStartup
(boolean autoStartup) Sets the auto startup property on this route.autoStartup
(String autoStartup) Sets the auto startup property on this route.delayer
(long delay) Enable delayer for this route.errorHandler
(String ref) Installs the given error handler builder.errorHandler
(org.apache.camel.ErrorHandlerFactory errorHandlerBuilder) Installs the given error handler builder.Creates an input to the routefrom
(EndpointConsumerBuilder endpoint) Creates an input to the routefrom
(org.apache.camel.Endpoint endpoint) Creates an input to the routestatic RouteDefinition
fromEndpoint
(org.apache.camel.Endpoint endpoint) void
This route is created from the REST DSL.static RouteDefinition
This is used internally by Camel to keep track which route configurations is applied when creating a route from this model.Whether to auto start this routeWhether to slow down processing messages by a given delay in msec.org.apache.camel.ErrorHandlerFactory
Sets the bean ref name of the error handler builder to use on this routegetGroup()
The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML.getInput()
getLabel()
Returns a label to describe this node such as the expression if some kind of expression nodeWhether security mask for Logging is enabled on this route.Whether message history is enabled on this route.Prefix to use for all node ids (not route id).The predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.org.apache.camel.spi.Resource
The route configuration id or pattern this route should use for configuration.List<org.apache.camel.spi.RoutePolicy>
Reference to customRoutePolicy
to use by the route.org.apache.camel.RouteTemplateContext
To control how to shutdown the route.To configure the ordering of the routes being startedWhether stream caching is enabled on this route.getTrace()
Whether tracing is enabled on this route.Set 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.inputTypeWithValidate
(Class clazz) Declare the expected data type of the input message by Java class with content validation enabled.Declare the expected data type of the input message with content validation enabled.boolean
boolean
Check if the route has been preparedisRest()
logMask()
Enable security mask for Logging on this route.Sets whether security mask for logging is enabled on this route.void
Marks the route definition as prepared.void
Marks the route definition as un-prepared.Enable message history for this route.messageHistory
(String messageHistory) Enable message history for this route.Disables this route from being auto started when Camel starts.Disable delayer for this route.nodePrefixId
(String prefixId) Sets a prefix to use for all node ids (not route id).Disable message history for this route.Disable stream caching for this route.Disable tracing for this route.outputType
(Class clazz) Declare the expected data type of the output message by Java class.outputType
(String urn) Declare the expected data type of the output message.outputTypeWithValidate
(Class clazz) Declare the expected data type of the ouput message by Java class with content validation enabled.Declare the expected data type of the output message with content validation enabled.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.void
Reset internal state before preparing routerouteConfigurationId
(String routeConfigurationId) The route configuration id or pattern this route should use for configuration.routeDescription
(String description) Set the route description for this routerouteGroup
(String group) Set the route group for this routeSet the route id for this routeroutePolicy
(Supplier<org.apache.camel.spi.RoutePolicy> policy) Configures route policy for this routeroutePolicy
(org.apache.camel.spi.RoutePolicy... policies) Configures route policies for this routeroutePolicyRef
(String routePolicyRef) Configures a route policy for this routerouteProperty
(String key, String value) Adds a custom property on the route.void
setAutoStartup
(String autoStartup) Whether to auto start this routevoid
setDelayer
(String delayer) Whether to slow down processing messages by a given delay in msec.void
setErrorHandlerFactory
(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) Sets the error handler to use with processors created by this buildervoid
setErrorHandlerFactoryIfNull
(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) Sets the error handler if one is not already setvoid
setErrorHandlerRef
(String errorHandlerRef) Sets the bean ref name of the error handler builder to use on this routevoid
The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML.void
setInput
(FromDefinition input) Input to the route.void
setInputType
(InputTypeDefinition inputType) void
setLogMask
(String logMask) Whether security mask for Logging is enabled on this route.void
setMessageHistory
(String messageHistory) Whether message history is enabled on this route.void
setNodePrefixId
(String nodePrefixId) Sets a prefix to use for all node ids (not route id).void
setOutputs
(List<ProcessorDefinition<?>> outputs) Outputs are processors that determines how messages are processed by this route.void
setOutputType
(OutputTypeDefinition outputType) void
setPrecondition
(String precondition) The predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.void
setResource
(org.apache.camel.spi.Resource resource) void
void
setRestBindingDefinition
(RestBindingDefinition restBindingDefinition) void
setRestDefinition
(RestDefinition restDefinition) void
setRouteConfigurationId
(String routeConfigurationId) The route configuration id or pattern this route should use for configuration.void
setRoutePolicies
(List<org.apache.camel.spi.RoutePolicy> routePolicies) void
setRoutePolicyRef
(String routePolicyRef) Reference to customRoutePolicy
to use by the route.void
setRouteProperties
(List<PropertyDefinition> routeProperties) To set metadata as properties on the route.void
setRouteTemplateContext
(org.apache.camel.RouteTemplateContext routeTemplateContext) void
setShutdownRoute
(String shutdownRoute) To control how to shutdown the route.void
setShutdownRunningTask
(String shutdownRunningTask) To control how to shutdown the route.void
setStartupOrder
(Integer startupOrder) To configure the ordering of the routes being startedvoid
setStreamCache
(String streamCache) Whether stream caching is enabled on this route.void
setTemplate
(Boolean template) This route is created from a route template.void
setTemplateDefaultParameters
(Map<String, Object> templateDefaultParameters) void
setTemplateParameters
(Map<String, Object> templateParameters) void
Whether tracing is enabled on this route.shutdownRoute
(String shutdownRoute) Configures a shutdown route option.shutdownRoute
(org.apache.camel.ShutdownRoute shutdownRoute) Configures a shutdown route option.shutdownRunningTask
(String shutdownRunningTask) Configures a shutdown running task option.shutdownRunningTask
(org.apache.camel.ShutdownRunningTask shutdownRunningTask) Configures a shutdown running task option.startupOrder
(int order) Configures the startup order for this routeEnable stream caching for this route.streamCaching
(String streamCache) Enable stream caching for this route.toString()
tracing()
Enable tracing for this route.Enable tracing for this route.Methods inherited from class org.apache.camel.model.ProcessorDefinition
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, convertBodyTo, delay, delay, delay, disabled, disabled, disabled, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoCatch, endDoTry, endParent, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getDisabled, getIndex, getInterceptStrategies, getParent, getRouteConfiguration, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, kamelet, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pausable, pausable, pausable, pausable, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, resumable, resumable, resumable, rollback, rollback, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setDisabled, setExchangePattern, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, setRouteConfiguration, sort, sort, sort, split, split, split, split, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, hasCustomIdAssigned, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.LineNumberAware
getLineNumber, getLocation, setLineNumber, setLocation
Methods inherited from interface org.apache.camel.NamedNode
getDescriptionText, getId, getParent
-
Constructor Details
-
RouteDefinition
public RouteDefinition() -
RouteDefinition
-
RouteDefinition
public RouteDefinition(org.apache.camel.Endpoint endpoint)
-
-
Method Details
-
fromRest
This route is created from the REST DSL. -
isPrepared
public boolean isPrepared()Check if the route has been prepared- Returns:
- whether the route has been prepared or not
- See Also:
-
markPrepared
public void markPrepared()Marks the route definition as prepared. This is needed if routes have been created by components such as camel-spring-xml or camel-blueprint. Usually they share logic in the camel-core-xml module which prepares the routes. -
markUnprepared
public void markUnprepared()Marks the route definition as un-prepared. -
resetPrepare
public void resetPrepare()Reset internal state before preparing route -
toString
- Overrides:
toString
in classOutputDefinition<RouteDefinition>
-
getShortName
- Specified by:
getShortName
in interfaceorg.apache.camel.NamedNode
- Overrides:
getShortName
in classOutputDefinition<RouteDefinition>
-
getLabel
Description copied from class:ProcessorDefinition
Returns a label to describe this node such as the expression if some kind of expression node- Specified by:
getLabel
in interfaceorg.apache.camel.NamedNode
- Overrides:
getLabel
in classProcessorDefinition<RouteDefinition>
-
getRouteId
- Specified by:
getRouteId
in interfaceorg.apache.camel.NamedRoute
-
getEndpointUrl
- Specified by:
getEndpointUrl
in interfaceorg.apache.camel.NamedRoute
-
from
Creates an input to the route- Parameters:
uri
- the from uri- Returns:
- the builder
-
from
Creates an input to the route- Parameters:
endpoint
- the from endpoint- Returns:
- the builder
-
from
Creates an input to the route- Parameters:
endpoint
- the from endpoint- Returns:
- the builder
-
routeConfigurationId
The route configuration id or pattern this route should use for configuration. Multiple id/pattern can be separated by comma.- Parameters:
routeConfigurationId
- id or pattern- Returns:
- the builder
-
group
Set the group name for this route- Parameters:
name
- the group name- Returns:
- the builder
-
routeGroup
Set the route group for this route- Overrides:
routeGroup
in classProcessorDefinition<RouteDefinition>
- Parameters:
group
- the route group- Returns:
- the builder
-
routeId
Set the route id for this route- Overrides:
routeId
in classProcessorDefinition<RouteDefinition>
- Parameters:
id
- the route id- Returns:
- the builder
-
routeDescription
Set the route description for this route- Overrides:
routeDescription
in classProcessorDefinition<RouteDefinition>
- Parameters:
description
- the route description- Returns:
- the builder
-
nodePrefixId
Sets a prefix to use for all node ids (not route id).- Overrides:
nodePrefixId
in classProcessorDefinition<RouteDefinition>
- Parameters:
prefixId
- the prefix- Returns:
- the builder
-
noStreamCaching
Disable stream caching for this route.- Returns:
- the builder
-
streamCaching
Enable stream caching for this route.- Returns:
- the builder
-
streamCaching
Enable stream caching for this route.- Parameters:
streamCache
- whether to use stream caching (true or false), the value can be a property placeholder- Returns:
- the builder
-
noTracing
Disable tracing for this route.- Returns:
- the builder
-
tracing
Enable tracing for this route.- Returns:
- the builder
-
tracing
Enable tracing for this route.- Parameters:
tracing
- whether to use tracing (true or false), the value can be a property placeholder- Returns:
- the builder
-
messageHistory
Enable message history for this route.- Returns:
- the builder
-
messageHistory
Enable message history for this route.- Parameters:
messageHistory
- whether to use message history (true or false), the value can be a property placeholder- Returns:
- the builder
-
logMask
Enable security mask for Logging on this route.- Returns:
- the builder
-
logMask
Sets whether security mask for logging is enabled on this route.- Parameters:
logMask
- whether to enable security mask for Logging (true or false), the value can be a property placeholder- Returns:
- the builder
-
noMessageHistory
Disable message history for this route.- Returns:
- the builder
-
noDelayer
Disable delayer for this route.- Returns:
- the builder
-
delayer
Enable delayer for this route.- Parameters:
delay
- delay in millis- Returns:
- the builder
-
errorHandler
Installs the given error handler builder.- Parameters:
ref
- reference to existing error handler- Returns:
- the current builder with the error handler configured
-
errorHandler
Installs the given error handler builder.- Parameters:
errorHandlerBuilder
- the error handler to be used by default for all child routes- Returns:
- the current builder with the error handler configured
-
noAutoStartup
Disables this route from being auto started when Camel starts.- Returns:
- the builder
-
autoStartup
Sets the auto startup property on this route.- Parameters:
autoStartup
- whether to auto startup (true or false), the value can be a property placeholder- Returns:
- the builder
-
autoStartup
Sets the auto startup property on this route.- Parameters:
autoStartup
- - boolean indicator- Returns:
- the builder
-
precondition
Sets the predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.- Parameters:
precondition
- the predicate corresponding to the test to evaluate.- Returns:
- the builder
-
startupOrder
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. Camel will stop routes in reverse order when its stopping.- Overrides:
startupOrder
in classProcessorDefinition<RouteDefinition>
- Parameters:
order
- the order represented as a number- Returns:
- the builder
-
routePolicy
Configures route policies for this route- Parameters:
policies
- the route policies- Returns:
- the builder
-
routePolicy
Configures route policy for this route- Parameters:
policy
- route policy- Returns:
- the builder
-
routePolicyRef
Configures a route policy for this route- Parameters:
routePolicyRef
- reference to aRoutePolicy
to lookup and use. You can specify multiple references by separating using comma.- Returns:
- the builder
-
shutdownRoute
Configures a shutdown route option.- Parameters:
shutdownRoute
- the option to use when shutting down this route- Returns:
- the builder
-
shutdownRoute
Configures a shutdown route option.- Parameters:
shutdownRoute
- the option to use when shutting down this route- Returns:
- the builder
-
shutdownRunningTask
public RouteDefinition shutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) Configures a shutdown running task option.- Parameters:
shutdownRunningTask
- the option to use when shutting down and how to act upon running tasks.- Returns:
- the builder
-
shutdownRunningTask
Configures a shutdown running task option.- Parameters:
shutdownRunningTask
- the option to use when shutting down and how to act upon running tasks.- Returns:
- the builder
-
inputType
Declare the expected data type of the input message. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists. The type name consists of two parts, 'scheme' and 'name' connected with ':'. For Java type 'name' is a fully qualified class name. For examplejava:java.lang.String
,json:ABCOrder
.- Parameters:
urn
- input type URN- Returns:
- the builder
- See Also:
-
Transformer
-
inputTypeWithValidate
Declare the expected data type of the input message with content validation enabled. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists, and then appliesValidator
as well. The type name consists of two parts, 'scheme' and 'name' connected with ':'. For Java type 'name' is a fully qualified class name. For examplejava:java.lang.String
,json:ABCOrder
.- Parameters:
urn
- input type URN- Returns:
- the builder
- See Also:
-
Transformer
Validator
-
inputType
Declare the expected data type of the input message by Java class. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists.- Parameters:
clazz
- Class object of the input type- Returns:
- the builder
- See Also:
-
Transformer
-
inputTypeWithValidate
Declare the expected data type of the input message by Java class with content validation enabled. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists, and then appliesValidator
as well.- Parameters:
clazz
- Class object of the input type- Returns:
- the builder
- See Also:
-
Transformer
Validator
-
outputType
Declare the expected data type of the output message. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists. The type name consists of two parts, 'scheme' and 'name' connected with ':'. For Java type 'name' is a fully qualified class name. For examplejava:java.lang.String
,json:ABCOrder
.- Parameters:
urn
- output type URN- Returns:
- the builder
- See Also:
-
Transformer
-
outputTypeWithValidate
Declare the expected data type of the output message with content validation enabled. If the actual message type is different at runtime, Camel look for a requiredTransformer
and apply if exists, and then appliesValidator
as well. The type name consists of two parts, 'scheme' and 'name' connected with ':'. For Java type 'name' is a fully qualified class name. For examplejava:java.lang.String
,json:ABCOrder
.- Parameters:
urn
- output type URN- Returns:
- the builder
- See Also:
-
Transformer
Validator
-
outputType
Declare the expected data type of the output message by Java class. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists.- Parameters:
clazz
- Class object of the output type- Returns:
- the builder
- See Also:
-
Transformer
-
outputTypeWithValidate
Declare the expected data type of the ouput message by Java class with content validation enabled. If the actual message type is different at runtime, camel look for a requiredTransformer
and apply if exists, and then appliesValidator
as well.- Parameters:
clazz
- Class object of the output type- Returns:
- the builder
- See Also:
-
Transformer
Validator
-
routeProperty
Adds a custom property on the route. -
getTemplateParameters
-
setTemplateParameters
-
getTemplateDefaultParameters
-
setTemplateDefaultParameters
-
getRouteTemplateContext
public org.apache.camel.RouteTemplateContext getRouteTemplateContext() -
setRouteTemplateContext
public void setRouteTemplateContext(org.apache.camel.RouteTemplateContext routeTemplateContext) -
getResource
public org.apache.camel.spi.Resource getResource()- Specified by:
getResource
in interfaceorg.apache.camel.spi.ResourceAware
-
setResource
public void setResource(org.apache.camel.spi.Resource resource) - Specified by:
setResource
in interfaceorg.apache.camel.spi.ResourceAware
-
getInput
- Specified by:
getInput
in interfaceorg.apache.camel.NamedRoute
-
setInput
Input to the route. -
getOutputs
- Overrides:
getOutputs
in classOutputDefinition<RouteDefinition>
-
setOutputs
Outputs are processors that determines how messages are processed by this route.- Overrides:
setOutputs
in classOutputDefinition<RouteDefinition>
-
getRouteConfigurationId
The route configuration id or pattern this route should use for configuration. Multiple id/pattern can be separated by comma. -
setRouteConfigurationId
The route configuration id or pattern this route should use for configuration. Multiple id/pattern can be separated by comma. -
addAppliedRouteConfigurationId
This is used internally by Camel to keep track which route configurations is applied when creating a route from this model. This method is not intended for Camel end users. -
getAppliedRouteConfigurationIds
This is used internally by Camel to keep track which route configurations is applied when creating a route from this model. This method is not intended for Camel end users. -
getGroup
The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML. May be null. -
setGroup
The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML. May be null. -
getNodePrefixId
Prefix to use for all node ids (not route id). -
setNodePrefixId
Sets a prefix to use for all node ids (not route id). -
getStreamCache
Whether stream caching is enabled on this route. -
setStreamCache
Whether stream caching is enabled on this route. -
getTrace
Whether tracing is enabled on this route. -
setTrace
Whether tracing is enabled on this route. -
getMessageHistory
Whether message history is enabled on this route. -
setMessageHistory
@Metadata(label="advanced", javaType="java.lang.Boolean") public void setMessageHistory(String messageHistory) Whether message history is enabled on this route. -
getLogMask
Whether security mask for Logging is enabled on this route. -
setLogMask
Whether security mask for Logging is enabled on this route. -
getDelayer
Whether to slow down processing messages by a given delay in msec. -
setDelayer
Whether to slow down processing messages by a given delay in msec. -
getAutoStartup
Whether to auto start this route -
setAutoStartup
@Metadata(javaType="java.lang.Boolean", defaultValue="true") public void setAutoStartup(String autoStartup) Whether to auto start this route -
getPrecondition
The predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.- Specified by:
getPrecondition
in interfacePreconditionContainer
-
setPrecondition
The predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.- Specified by:
setPrecondition
in interfacePreconditionContainer
-
getStartupOrder
To configure the ordering of the routes being started -
setStartupOrder
@Metadata(label="advanced", javaType="java.lang.Integer") public void setStartupOrder(Integer startupOrder) To configure the ordering of the routes being started -
setErrorHandlerRef
Sets the bean ref name of the error handler builder to use on this route -
getErrorHandlerRef
Sets the bean ref name of the error handler builder to use on this route -
setErrorHandlerFactoryIfNull
public void setErrorHandlerFactoryIfNull(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) Sets the error handler if one is not already set -
setRoutePolicyRef
Reference to customRoutePolicy
to use by the route. Multiple policies can be configured by separating values using comma. -
getRoutePolicyRef
Reference to customRoutePolicy
to use by the route. Multiple policies can be configured by separating values using comma. -
getRoutePolicies
-
setRoutePolicies
-
getShutdownRoute
-
setShutdownRoute
@Metadata(label="advanced", javaType="org.apache.camel.ShutdownRoute", defaultValue="Default", enums="Default,Defer") public void setShutdownRoute(String shutdownRoute) To control how to shutdown the route. -
getShutdownRunningTask
To control how to shutdown the route. -
setShutdownRunningTask
@Metadata(label="advanced", javaType="org.apache.camel.ShutdownRunningTask", defaultValue="CompleteCurrentTaskOnly", enums="CompleteCurrentTaskOnly,CompleteAllTasks") public void setShutdownRunningTask(String shutdownRunningTask) To control how to shutdown the route. -
getErrorHandlerFactory
public org.apache.camel.ErrorHandlerFactory getErrorHandlerFactory() -
setErrorHandlerFactory
public void setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) Sets the error handler to use with processors created by this builder -
setRest
-
isRest
-
setTemplate
This route is created from a route template. -
isTemplate
-
getRestDefinition
-
setRestDefinition
-
getRestBindingDefinition
-
setRestBindingDefinition
-
isContextScopedErrorHandler
public boolean isContextScopedErrorHandler() -
setInputType
-
getInputType
-
setOutputType
-
getOutputType
-
getRouteProperties
-
setRouteProperties
@Metadata(label="advanced") public void setRouteProperties(List<PropertyDefinition> routeProperties) To set metadata as properties on the route. -
fromUri
-
fromEndpoint
-