public class DefaultRouteContext extends Object implements org.apache.camel.spi.RouteContext
| Constructor and Description |
|---|
DefaultRouteContext(org.apache.camel.CamelContext camelContext)
Only used for lazy construction from inside ExpressionType
|
DefaultRouteContext(org.apache.camel.CamelContext camelContext,
RouteDefinition route,
FromDefinition from,
Collection<org.apache.camel.Route> routes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventDrivenProcessor(org.apache.camel.Processor processor) |
void |
addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy) |
void |
commit() |
int |
getAndIncrement(org.apache.camel.NamedNode node) |
org.apache.camel.CamelContext |
getCamelContext() |
Long |
getDelayer() |
org.apache.camel.Endpoint |
getEndpoint() |
FromDefinition |
getFrom() |
List<org.apache.camel.spi.InterceptStrategy> |
getInterceptStrategies() |
org.apache.camel.spi.RouteError |
getLastError() |
org.apache.camel.spi.ManagementInterceptStrategy |
getManagementInterceptStrategy() |
RouteDefinition |
getRoute() |
org.apache.camel.spi.RouteController |
getRouteController() |
List<org.apache.camel.spi.RoutePolicy> |
getRoutePolicyList() |
org.apache.camel.ShutdownRoute |
getShutdownRoute() |
org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
Boolean |
isAllowUseOriginalMessage() |
Boolean |
isAutoStartup() |
Boolean |
isHandleFault() |
Boolean |
isLogExhaustedMessageBody() |
Boolean |
isLogMask() |
Boolean |
isMessageHistory() |
boolean |
isRouteAdded() |
Boolean |
isStreamCaching() |
Boolean |
isTracing() |
<T> T |
lookup(String name,
Class<T> type) |
<T> Map<String,T> |
lookupByType(Class<T> type) |
<T> T |
mandatoryLookup(String name,
Class<T> type) |
org.apache.camel.Endpoint |
resolveEndpoint(String uri) |
org.apache.camel.Endpoint |
resolveEndpoint(String uri,
String ref) |
void |
setAllowUseOriginalMessage(Boolean allowUseOriginalMessage) |
void |
setAutoStartup(Boolean autoStartup) |
void |
setDelayer(Long delay) |
void |
setHandleFault(Boolean handleFault) |
void |
setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies) |
void |
setIsRouteAdded(boolean routeAdded) |
void |
setLastError(org.apache.camel.spi.RouteError routeError) |
void |
setLogExhaustedMessageBody(Boolean logExhaustedMessageBody) |
void |
setLogMask(Boolean logMask) |
void |
setManagementInterceptStrategy(org.apache.camel.spi.ManagementInterceptStrategy interceptStrategy) |
void |
setMessageHistory(Boolean messageHistory) |
void |
setRouteController(org.apache.camel.spi.RouteController routeController) |
void |
setRoutePolicyList(List<org.apache.camel.spi.RoutePolicy> routePolicyList) |
void |
setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute) |
void |
setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) |
void |
setStreamCaching(Boolean cache) |
void |
setTracing(Boolean tracing) |
public DefaultRouteContext(org.apache.camel.CamelContext camelContext, RouteDefinition route, FromDefinition from, Collection<org.apache.camel.Route> routes)
public DefaultRouteContext(org.apache.camel.CamelContext camelContext)
public org.apache.camel.Endpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwarepublic FromDefinition getFrom()
getFrom in interface org.apache.camel.spi.RouteContextpublic RouteDefinition getRoute()
getRoute in interface org.apache.camel.spi.RouteContextpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.spi.RouteContextpublic org.apache.camel.Endpoint resolveEndpoint(String uri)
resolveEndpoint in interface org.apache.camel.spi.RouteContextpublic org.apache.camel.Endpoint resolveEndpoint(String uri, String ref)
resolveEndpoint in interface org.apache.camel.spi.RouteContextpublic <T> T lookup(String name, Class<T> type)
lookup in interface org.apache.camel.spi.RouteContextpublic <T> Map<String,T> lookupByType(Class<T> type)
lookupByType in interface org.apache.camel.spi.RouteContextpublic <T> T mandatoryLookup(String name, Class<T> type)
mandatoryLookup in interface org.apache.camel.spi.RouteContextpublic void commit()
commit in interface org.apache.camel.spi.RouteContextpublic void addEventDrivenProcessor(org.apache.camel.Processor processor)
addEventDrivenProcessor in interface org.apache.camel.spi.RouteContextpublic List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
getInterceptStrategies in interface org.apache.camel.spi.RouteContextpublic void setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies)
setInterceptStrategies in interface org.apache.camel.spi.RouteContextpublic void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy)
addInterceptStrategy in interface org.apache.camel.spi.RouteContextpublic void setManagementInterceptStrategy(org.apache.camel.spi.ManagementInterceptStrategy interceptStrategy)
setManagementInterceptStrategy in interface org.apache.camel.spi.RouteContextpublic org.apache.camel.spi.ManagementInterceptStrategy getManagementInterceptStrategy()
getManagementInterceptStrategy in interface org.apache.camel.spi.RouteContextpublic boolean isRouteAdded()
isRouteAdded in interface org.apache.camel.spi.RouteContextpublic void setIsRouteAdded(boolean routeAdded)
setIsRouteAdded in interface org.apache.camel.spi.RouteContextpublic void setTracing(Boolean tracing)
setTracing in interface org.apache.camel.RuntimeConfigurationpublic Boolean isTracing()
isTracing in interface org.apache.camel.RuntimeConfigurationpublic void setMessageHistory(Boolean messageHistory)
setMessageHistory in interface org.apache.camel.RuntimeConfigurationpublic Boolean isMessageHistory()
isMessageHistory in interface org.apache.camel.RuntimeConfigurationpublic void setLogMask(Boolean logMask)
setLogMask in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogMask()
isLogMask in interface org.apache.camel.RuntimeConfigurationpublic void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
setLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogExhaustedMessageBody()
isLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic void setStreamCaching(Boolean cache)
setStreamCaching in interface org.apache.camel.RuntimeConfigurationpublic Boolean isStreamCaching()
isStreamCaching in interface org.apache.camel.RuntimeConfigurationpublic void setHandleFault(Boolean handleFault)
setHandleFault in interface org.apache.camel.RuntimeConfigurationpublic Boolean isHandleFault()
isHandleFault in interface org.apache.camel.RuntimeConfigurationpublic void setDelayer(Long delay)
setDelayer in interface org.apache.camel.RuntimeConfigurationpublic Long getDelayer()
getDelayer in interface org.apache.camel.RuntimeConfigurationpublic void setAutoStartup(Boolean autoStartup)
setAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAutoStartup()
isAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
setShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic void setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
setAllowUseOriginalMessage in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
setShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic int getAndIncrement(org.apache.camel.NamedNode node)
getAndIncrement in interface org.apache.camel.spi.RouteContextpublic void setRoutePolicyList(List<org.apache.camel.spi.RoutePolicy> routePolicyList)
setRoutePolicyList in interface org.apache.camel.spi.RouteContextpublic List<org.apache.camel.spi.RoutePolicy> getRoutePolicyList()
getRoutePolicyList in interface org.apache.camel.spi.RouteContextpublic org.apache.camel.spi.RouteError getLastError()
getLastError in interface org.apache.camel.spi.RouteContextpublic void setLastError(org.apache.camel.spi.RouteError routeError)
setLastError in interface org.apache.camel.spi.RouteContextpublic org.apache.camel.spi.RouteController getRouteController()
getRouteController in interface org.apache.camel.spi.RouteContextpublic void setRouteController(org.apache.camel.spi.RouteController routeController)
setRouteController in interface org.apache.camel.spi.RouteContextApache Camel