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.HasCamelContext,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
outputsFields 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 TypeMethodDescriptionvoidaddAppliedRouteConfigurationId(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 RouteDefinitionfromEndpoint(org.apache.camel.Endpoint endpoint) voidThis route is created from the REST DSL.static RouteDefinitionThis 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.ErrorHandlerFactorySets 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.ResourceThe route configuration id or pattern this route should use for configuration.List<org.apache.camel.spi.RoutePolicy> Reference to customRoutePolicyto use by the route.org.apache.camel.RouteTemplateContextTo control how to shut down 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.booleanbooleanbooleanbooleanCheck 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.voidMarks the route definition as prepared.voidMarks 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 output 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.voidReset 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.voidsetAutoStartup(String autoStartup) Whether to auto start this routevoidsetDelayer(String delayer) Whether to slow down processing messages by a given delay in msec.voidsetErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) Sets the error handler to use with processors created by this buildervoidsetErrorHandlerFactoryIfNull(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) Sets the error handler if one is not already setvoidsetErrorHandlerRef(String errorHandlerRef) Sets the bean ref name of the error handler builder to use on this routevoidThe group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML.voidsetInput(FromDefinition input) Input to the route.voidsetInputType(InputTypeDefinition inputType) voidsetLogMask(String logMask) Whether security mask for Logging is enabled on this route.voidsetMessageHistory(String messageHistory) Whether message history is enabled on this route.voidsetNodePrefixId(String nodePrefixId) Sets a prefix to use for all node ids (not route id).voidsetOutputs(List<ProcessorDefinition<?>> outputs) Outputs are processors that determines how messages are processed by this route.voidsetOutputType(OutputTypeDefinition outputType) voidsetPrecondition(String precondition) The predicate of the precondition in simple language to evaluate in order to determine if this route should be included or not.voidsetResource(org.apache.camel.spi.Resource resource) voidThis route is created from REST DSLvoidsetRestBindingDefinition(RestBindingDefinition restBindingDefinition) voidsetRestDefinition(RestDefinition restDefinition) voidsetRouteConfigurationId(String routeConfigurationId) The route configuration id or pattern this route should use for configuration.voidsetRoutePolicies(List<org.apache.camel.spi.RoutePolicy> routePolicies) voidsetRoutePolicyRef(String routePolicyRef) Reference to customRoutePolicyto use by the route.voidsetRouteProperties(List<PropertyDefinition> routeProperties) To set metadata as properties on the route.voidsetRouteTemplateContext(org.apache.camel.RouteTemplateContext routeTemplateContext) voidsetShutdownRoute(String shutdownRoute) To control how to shutdown the route.voidsetShutdownRunningTask(String shutdownRunningTask) To control how to shut down the route.voidsetStartupOrder(Integer startupOrder) To configure the ordering of the routes being startedvoidsetStreamCache(String streamCache) Whether stream caching is enabled on this route.voidsetTemplate(Boolean template) This route is created from a route template.voidsetTemplateDefaultParameters(Map<String, Object> templateDefaultParameters) voidsetTemplateParameters(Map<String, Object> templateParameters) voidWhether 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, convertHeaderTo, convertHeaderTo, convertHeaderTo, 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, 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, setHeaders, 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, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTapMethods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, hasCustomIdAssigned, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.LineNumberAware
getLineNumber, getLocation, setLineNumber, setLocationMethods 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:
toStringin classOutputDefinition<RouteDefinition>
-
getShortName
- Specified by:
getShortNamein interfaceorg.apache.camel.NamedNode- Overrides:
getShortNamein classOutputDefinition<RouteDefinition>
-
getLabel
Description copied from class:ProcessorDefinitionReturns a label to describe this node such as the expression if some kind of expression node- Specified by:
getLabelin interfaceorg.apache.camel.NamedNode- Overrides:
getLabelin classProcessorDefinition<RouteDefinition>
-
getRouteId
- Specified by:
getRouteIdin interfaceorg.apache.camel.NamedRoute
-
getEndpointUrl
- Specified by:
getEndpointUrlin 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:
routeGroupin classProcessorDefinition<RouteDefinition>- Parameters:
group- the route group- Returns:
- the builder
-
routeId
Set the route id for this route- Overrides:
routeIdin classProcessorDefinition<RouteDefinition>- Parameters:
id- the route id- Returns:
- the builder
-
routeDescription
Set the route description for this route- Overrides:
routeDescriptionin classProcessorDefinition<RouteDefinition>- Parameters:
description- the route description- Returns:
- the builder
-
nodePrefixId
Sets a prefix to use for all node ids (not route id).- Overrides:
nodePrefixIdin 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:
startupOrderin 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 aRoutePolicyto 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 requiredTransformerand 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:
-
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 requiredTransformerand apply if exists, and then appliesValidatoras 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:
-
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 requiredTransformerand apply if exists.- Parameters:
clazz- Class object of the input type- Returns:
- the builder
- See Also:
-
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 requiredTransformerand apply if exists, and then appliesValidatoras well.- Parameters:
clazz- Class object of the input type- Returns:
- the builder
- See Also:
-
outputType
Declare the expected data type of the output message. If the actual message type is different at runtime, camel look for a requiredTransformerand 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:
-
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 requiredTransformerand apply if exists, and then appliesValidatoras 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:
-
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 requiredTransformerand apply if exists.- Parameters:
clazz- Class object of the output type- Returns:
- the builder
- See Also:
-
outputTypeWithValidate
Declare the expected data type of the output message by Java class with content validation enabled. If the actual message type is different at runtime, camel look for a requiredTransformerand apply if exists, and then appliesValidatoras well.- Parameters:
clazz- Class object of the output type- Returns:
- the builder
- See Also:
-
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:
getResourcein interfaceorg.apache.camel.spi.ResourceAware
-
setResource
public void setResource(org.apache.camel.spi.Resource resource) - Specified by:
setResourcein interfaceorg.apache.camel.spi.ResourceAware
-
getInput
- Specified by:
getInputin interfaceorg.apache.camel.NamedRoute
-
setInput
Input to the route. -
getOutputs
- Overrides:
getOutputsin classOutputDefinition<RouteDefinition>
-
setOutputs
Outputs are processors that determines how messages are processed by this route.- Overrides:
setOutputsin 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).- Specified by:
getNodePrefixIdin interfaceorg.apache.camel.NamedNode- Specified by:
getNodePrefixIdin interfaceorg.apache.camel.NamedRoute- Overrides:
getNodePrefixIdin classOptionalIdentifiedDefinition<RouteDefinition>
-
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:
getPreconditionin 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:
setPreconditionin 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 customRoutePolicyto use by the route. Multiple policies can be configured by separating values using comma. -
getRoutePolicyRef
Reference to customRoutePolicyto 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 shut down 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 shut down 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
This route is created from REST DSL -
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. -
isCreatedFromTemplate
public boolean isCreatedFromTemplate()- Specified by:
isCreatedFromTemplatein interfaceorg.apache.camel.NamedRoute
-
isCreatedFromRest
public boolean isCreatedFromRest()- Specified by:
isCreatedFromRestin interfaceorg.apache.camel.NamedRoute
-
fromUri
-
fromEndpoint
-