public class DefaultRouteContext extends Object implements org.apache.camel.spi.RouteContext
Constructor and Description |
---|
DefaultRouteContext(org.apache.camel.CamelContext camelContext,
org.apache.camel.NamedNode route,
String routeId) |
Modifier and Type | Method and Description |
---|---|
void |
addAdvice(org.apache.camel.spi.CamelInternalProcessorAdvice<?> advice) |
void |
addErrorHandler(org.apache.camel.ErrorHandlerFactory factory,
org.apache.camel.NamedNode onException) |
void |
addErrorHandlerFactoryReference(org.apache.camel.ErrorHandlerFactory source,
org.apache.camel.ErrorHandlerFactory target) |
void |
addEventDrivenProcessor(org.apache.camel.Processor processor) |
void |
addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy) |
void |
addProperty(String key,
Object value) |
org.apache.camel.Route |
commit() |
org.apache.camel.CamelContext |
getCamelContext() |
Long |
getDelayer() |
org.apache.camel.Endpoint |
getEndpoint() |
org.apache.camel.ErrorHandlerFactory |
getErrorHandlerFactory() |
Set<org.apache.camel.NamedNode> |
getErrorHandlers(org.apache.camel.ErrorHandlerFactory factory) |
List<org.apache.camel.spi.InterceptStrategy> |
getInterceptStrategies() |
org.apache.camel.spi.RouteError |
getLastError() |
org.apache.camel.spi.ManagementInterceptStrategy |
getManagementInterceptStrategy() |
org.apache.camel.Processor |
getOnCompletion(String onCompletionId) |
org.apache.camel.Processor |
getOnException(String onExceptionId) |
org.apache.camel.NamedNode |
getRoute() |
org.apache.camel.spi.RouteController |
getRouteController() |
String |
getRouteId() |
List<org.apache.camel.spi.RoutePolicy> |
getRoutePolicyList() |
org.apache.camel.Route |
getRuntimeRoute() |
org.apache.camel.ShutdownRoute |
getShutdownRoute() |
org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
Integer |
getStartupOrder() |
String |
getTracingPattern() |
Boolean |
isAllowUseOriginalMessage() |
Boolean |
isAutoStartup() |
Boolean |
isBacklogTracing() |
Boolean |
isDebugging() |
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 |
setBacklogTracing(Boolean backlogTrace) |
void |
setDebugging(Boolean debugging) |
void |
setDelayer(Long delay) |
void |
setEndpoint(org.apache.camel.Endpoint endpoint) |
void |
setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) |
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 |
setOnCompletion(String onCompletionId,
org.apache.camel.Processor processor) |
void |
setOnException(String onExceptionId,
org.apache.camel.Processor processor) |
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 |
setStartupOrder(Integer startupOrder) |
void |
setStreamCaching(Boolean cache) |
void |
setTracing(Boolean tracing) |
void |
setTracingPattern(String tracePattern) |
public DefaultRouteContext(org.apache.camel.CamelContext camelContext, org.apache.camel.NamedNode route, String routeId)
public org.apache.camel.Endpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
public void setEndpoint(org.apache.camel.Endpoint endpoint)
setEndpoint
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.NamedNode getRoute()
getRoute
in interface org.apache.camel.spi.RouteContext
public String getRouteId()
getRouteId
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.Route getRuntimeRoute()
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 org.apache.camel.Route 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 String getTracingPattern()
getTracingPattern
in interface org.apache.camel.RuntimeConfiguration
public void setTracingPattern(String tracePattern)
setTracingPattern
in interface org.apache.camel.RuntimeConfiguration
public void setBacklogTracing(Boolean backlogTrace)
setBacklogTracing
in interface org.apache.camel.RuntimeConfiguration
public Boolean isBacklogTracing()
isBacklogTracing
in interface org.apache.camel.RuntimeConfiguration
public void setDebugging(Boolean debugging)
setDebugging
in interface org.apache.camel.RuntimeConfiguration
public Boolean isDebugging()
isDebugging
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 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
setAutoStartup
in interface org.apache.camel.spi.RouteContext
public Boolean isAutoStartup()
isAutoStartup
in interface org.apache.camel.RuntimeConfiguration
isAutoStartup
in interface org.apache.camel.spi.RouteContext
public void setStartupOrder(Integer startupOrder)
setStartupOrder
in interface org.apache.camel.spi.RouteContext
public Integer getStartupOrder()
getStartupOrder
in interface org.apache.camel.spi.RouteContext
public void setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory)
setErrorHandlerFactory
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.ErrorHandlerFactory getErrorHandlerFactory()
getErrorHandlerFactory
in interface org.apache.camel.spi.RouteContext
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 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
public org.apache.camel.Processor getOnCompletion(String onCompletionId)
getOnCompletion
in interface org.apache.camel.spi.RouteContext
public void setOnCompletion(String onCompletionId, org.apache.camel.Processor processor)
setOnCompletion
in interface org.apache.camel.spi.RouteContext
public org.apache.camel.Processor getOnException(String onExceptionId)
getOnException
in interface org.apache.camel.spi.RouteContext
public void setOnException(String onExceptionId, org.apache.camel.Processor processor)
setOnException
in interface org.apache.camel.spi.RouteContext
public void addAdvice(org.apache.camel.spi.CamelInternalProcessorAdvice<?> advice)
addAdvice
in interface org.apache.camel.spi.RouteContext
public void addProperty(String key, Object value)
addProperty
in interface org.apache.camel.spi.RouteContext
public void addErrorHandler(org.apache.camel.ErrorHandlerFactory factory, org.apache.camel.NamedNode onException)
addErrorHandler
in interface org.apache.camel.spi.RouteContext
public Set<org.apache.camel.NamedNode> getErrorHandlers(org.apache.camel.ErrorHandlerFactory factory)
getErrorHandlers
in interface org.apache.camel.spi.RouteContext
public void addErrorHandlerFactoryReference(org.apache.camel.ErrorHandlerFactory source, org.apache.camel.ErrorHandlerFactory target)
addErrorHandlerFactoryReference
in interface org.apache.camel.spi.RouteContext
Apache Camel