public final class HandleFault extends Object implements InterceptStrategy
InterceptStrategy implementation to handle faults as exceptions on a RouteContext| Constructor and Description |
|---|
HandleFault() |
| Modifier and Type | Method and Description |
|---|---|
static HandleFault |
getHandleFault(CamelContext context)
A helper method to return the HandleFault instance
for a given
CamelContext if one is enabled |
String |
toString() |
Processor |
wrapProcessorInInterceptors(CamelContext context,
ProcessorDefinition<?> definition,
Processor target,
Processor nextTarget)
This method is invoked by
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route. |
public HandleFault()
public Processor wrapProcessorInInterceptors(CamelContext context, ProcessorDefinition<?> definition, Processor target, Processor nextTarget) throws Exception
InterceptStrategyProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
Important: See the class javadoc for advice on letting interceptor be compatible with the
asynchronous routing engine.wrapProcessorInInterceptors in interface InterceptStrategycontext - Camel contextdefinition - the model this interceptor representstarget - the processor to be wrappednextTarget - the next processor to be routed toException - can be thrownpublic static HandleFault getHandleFault(CamelContext context)
CamelContext if one is enabledcontext - the camel context the handlefault intercept strategy is connected toApache Camel