public interface RouteContext extends RuntimeConfiguration
| Modifier and Type | Method and Description |
|---|---|
void |
addEventDrivenProcessor(Processor processor)
Adds an event driven processor
|
void |
addInterceptStrategy(InterceptStrategy interceptStrategy)
Adds a InterceptStrategy to this route context
|
void |
commit()
For completing the route creation, creating a single event driven route
for the current from endpoint with any processors required
|
int |
getAndIncrement(ProcessorDefinition<?> node)
A private counter that increments, is used to as book keeping
when building a route based on the model
We need this special book keeping be able to assign the correct
ProcessorDefinition to the Channel |
CamelContext |
getCamelContext()
Gets the camel context
|
Endpoint |
getEndpoint()
Gets the endpoint
|
FromDefinition |
getFrom()
Gets the from type
|
java.util.List<InterceptStrategy> |
getInterceptStrategies()
This method retrieves the InterceptStrategy instances this route context.
|
InterceptStrategy |
getManagedInterceptStrategy()
Gets the special managed intercept strategy if any
|
RouteDefinition |
getRoute()
Get the route type
|
java.util.List<RoutePolicy> |
getRoutePolicyList()
Gets the route policy List
|
boolean |
isRouteAdded()
Returns the isRouteAdded flag
|
<T> T |
lookup(java.lang.String name,
java.lang.Class<T> type)
lookup an object by name and type
|
<T> java.util.Map<java.lang.String,T> |
lookupByType(java.lang.Class<T> type)
lookup objects by type
|
<T> T |
mandatoryLookup(java.lang.String name,
java.lang.Class<T> type)
lookup an object by name and type or throws
NoSuchBeanException if not found. |
Endpoint |
resolveEndpoint(java.lang.String uri)
Resolves an endpoint from the URI
|
Endpoint |
resolveEndpoint(java.lang.String uri,
java.lang.String ref)
Resolves an endpoint from either a URI or a named reference
|
void |
setInterceptStrategies(java.util.List<InterceptStrategy> interceptStrategies)
This method sets the InterceptStrategy instances on this route context.
|
void |
setIsRouteAdded(boolean value)
If this flag is true,
ProcessorDefinition.addRoutes(RouteContext, java.util.Collection)
will not add processor to addEventDrivenProcessor to the RouteContext and it
will prevent from adding an EventDrivenRoute. |
void |
setManagedInterceptStrategy(InterceptStrategy interceptStrategy)
Sets a special intercept strategy for management.
|
void |
setRoutePolicyList(java.util.List<RoutePolicy> routePolicyList)
Sets a custom route policy List
|
getDelayer, getShutdownRoute, getShutdownRunningTask, isAllowUseOriginalMessage, isAutoStartup, isHandleFault, isMessageHistory, isStreamCaching, isTracing, setAllowUseOriginalMessage, setAutoStartup, setDelayer, setHandleFault, setMessageHistory, setShutdownRoute, setShutdownRunningTask, setStreamCaching, setTracingEndpoint getEndpoint()
FromDefinition getFrom()
RouteDefinition getRoute()
CamelContext getCamelContext()
Endpoint resolveEndpoint(java.lang.String uri)
uri - the URIEndpoint resolveEndpoint(java.lang.String uri, java.lang.String ref)
uri - the URI orref - the named reference<T> T lookup(java.lang.String name,
java.lang.Class<T> type)
name - the name to lookuptype - the expected type<T> T mandatoryLookup(java.lang.String name,
java.lang.Class<T> type)
NoSuchBeanException if not found.name - the name to lookuptype - the expected type<T> java.util.Map<java.lang.String,T> lookupByType(java.lang.Class<T> type)
type - the expected typevoid commit()
void addEventDrivenProcessor(Processor processor)
processor - the processorjava.util.List<InterceptStrategy> getInterceptStrategies()
void setInterceptStrategies(java.util.List<InterceptStrategy> interceptStrategies)
interceptStrategies - the strategiesvoid addInterceptStrategy(InterceptStrategy interceptStrategy)
interceptStrategy - the strategyvoid setManagedInterceptStrategy(InterceptStrategy interceptStrategy)
interceptStrategy - the managed intercept strategyInterceptStrategy getManagedInterceptStrategy()
void setIsRouteAdded(boolean value)
ProcessorDefinition.addRoutes(RouteContext, java.util.Collection)
will not add processor to addEventDrivenProcessor to the RouteContext and it
will prevent from adding an EventDrivenRoute.value - the flagboolean isRouteAdded()
java.util.List<RoutePolicy> getRoutePolicyList()
void setRoutePolicyList(java.util.List<RoutePolicy> routePolicyList)
routePolicyList - the custom route policy listint getAndIncrement(ProcessorDefinition<?> node)
ProcessorDefinition to the Channelnode - the current nodeCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.