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.EndpointAware
public FromDefinition getFrom()
getFrom
in interface org.apache.camel.spi.RouteContext
public RouteDefinition getRoute()
getRoute
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.Endpoint resolveEndpoint(String uri)
resolveEndpoint
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.Endpoint resolveEndpoint(String uri, String ref)
resolveEndpoint
in interface org.apache.camel.spi.RouteContext
public <T> T lookup(String name, Class<T> type)
lookup
in interface org.apache.camel.spi.RouteContext
public <T> Map<String,T> lookupByType(Class<T> type)
lookupByType
in interface org.apache.camel.spi.RouteContext
public <T> T mandatoryLookup(String name, Class<T> type)
mandatoryLookup
in interface org.apache.camel.spi.RouteContext
public void commit()
commit
in interface org.apache.camel.spi.RouteContext
public void addEventDrivenProcessor(org.apache.camel.Processor processor)
addEventDrivenProcessor
in interface org.apache.camel.spi.RouteContext
public List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
getInterceptStrategies
in interface org.apache.camel.spi.RouteContext
public void setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies)
setInterceptStrategies
in interface org.apache.camel.spi.RouteContext
public void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy)
addInterceptStrategy
in interface org.apache.camel.spi.RouteContext
public void setManagementInterceptStrategy(org.apache.camel.spi.ManagementInterceptStrategy interceptStrategy)
setManagementInterceptStrategy
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.spi.ManagementInterceptStrategy getManagementInterceptStrategy()
getManagementInterceptStrategy
in interface org.apache.camel.spi.RouteContext
public boolean isRouteAdded()
isRouteAdded
in interface org.apache.camel.spi.RouteContext
public void setIsRouteAdded(boolean routeAdded)
setIsRouteAdded
in interface org.apache.camel.spi.RouteContext
public void setTracing(Boolean tracing)
setTracing
in interface org.apache.camel.RuntimeConfiguration
public Boolean isTracing()
isTracing
in interface org.apache.camel.RuntimeConfiguration
public void setMessageHistory(Boolean messageHistory)
setMessageHistory
in interface org.apache.camel.RuntimeConfiguration
public Boolean isMessageHistory()
isMessageHistory
in interface org.apache.camel.RuntimeConfiguration
public void setLogMask(Boolean logMask)
setLogMask
in interface org.apache.camel.RuntimeConfiguration
public Boolean isLogMask()
isLogMask
in interface org.apache.camel.RuntimeConfiguration
public void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
setLogExhaustedMessageBody
in interface org.apache.camel.RuntimeConfiguration
public Boolean isLogExhaustedMessageBody()
isLogExhaustedMessageBody
in interface org.apache.camel.RuntimeConfiguration
public void setStreamCaching(Boolean cache)
setStreamCaching
in interface org.apache.camel.RuntimeConfiguration
public Boolean isStreamCaching()
isStreamCaching
in interface org.apache.camel.RuntimeConfiguration
public void setHandleFault(Boolean handleFault)
setHandleFault
in interface org.apache.camel.RuntimeConfiguration
public Boolean isHandleFault()
isHandleFault
in interface org.apache.camel.RuntimeConfiguration
public void setDelayer(Long delay)
setDelayer
in interface org.apache.camel.RuntimeConfiguration
public Long getDelayer()
getDelayer
in interface org.apache.camel.RuntimeConfiguration
public void setAutoStartup(Boolean autoStartup)
setAutoStartup
in interface org.apache.camel.RuntimeConfiguration
public Boolean isAutoStartup()
isAutoStartup
in interface org.apache.camel.RuntimeConfiguration
public void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
setShutdownRoute
in interface org.apache.camel.RuntimeConfiguration
public void setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
setAllowUseOriginalMessage
in interface org.apache.camel.RuntimeConfiguration
public Boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage
in interface org.apache.camel.RuntimeConfiguration
public org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute
in interface org.apache.camel.RuntimeConfiguration
public void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
setShutdownRunningTask
in interface org.apache.camel.RuntimeConfiguration
public org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask
in interface org.apache.camel.RuntimeConfiguration
public int getAndIncrement(org.apache.camel.NamedNode node)
getAndIncrement
in interface org.apache.camel.spi.RouteContext
public void setRoutePolicyList(List<org.apache.camel.spi.RoutePolicy> routePolicyList)
setRoutePolicyList
in interface org.apache.camel.spi.RouteContext
public List<org.apache.camel.spi.RoutePolicy> getRoutePolicyList()
getRoutePolicyList
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.spi.RouteError getLastError()
getLastError
in interface org.apache.camel.spi.RouteContext
public void setLastError(org.apache.camel.spi.RouteError routeError)
setLastError
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.spi.RouteController getRouteController()
getRouteController
in interface org.apache.camel.spi.RouteContext
public void setRouteController(org.apache.camel.spi.RouteController routeController)
setRouteController
in interface org.apache.camel.spi.RouteContext
Apache Camel