|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.ErrorHandlerBuilderSupport
public abstract class ErrorHandlerBuilderSupport
Base class for builders of error handling.
Constructor Summary | |
---|---|
ErrorHandlerBuilderSupport()
|
Method Summary | |
---|---|
void |
addErrorHandlers(RouteContext routeContext,
OnExceptionDefinition exception)
Adds error handler for the given exception type |
protected void |
cloneBuilder(ErrorHandlerBuilderSupport other)
|
void |
configure(RouteContext routeContext,
ErrorHandler handler)
Configures the other error handler based on this error handler. |
ErrorHandlerBuilderSupport |
exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
Sets the exception policy to use |
List<OnExceptionDefinition> |
getErrorHandlers(RouteContext routeContext)
Gets the error handlers |
ExceptionPolicyStrategy |
getExceptionPolicyStrategy()
Gets the exception policy strategy |
void |
setErrorHandlers(RouteContext routeContext,
List<OnExceptionDefinition> exceptions)
Adds the error handlers for the given list of exception types |
void |
setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
Sets the exception policy strategy to use for resolving the OnExceptionDefinition
to use for a given thrown exception |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.builder.ErrorHandlerBuilder |
---|
cloneBuilder, supportTransacted |
Methods inherited from interface org.apache.camel.ErrorHandlerFactory |
---|
createErrorHandler |
Constructor Detail |
---|
public ErrorHandlerBuilderSupport()
Method Detail |
---|
public void addErrorHandlers(RouteContext routeContext, OnExceptionDefinition exception)
ErrorHandlerBuilder
addErrorHandlers
in interface ErrorHandlerBuilder
routeContext
- the route contextexception
- the exception to handleprotected void cloneBuilder(ErrorHandlerBuilderSupport other)
public void configure(RouteContext routeContext, ErrorHandler handler)
ErrorHandlerBuilder
configure
in interface ErrorHandlerBuilder
routeContext
- the route contexthandler
- the other error handlerpublic List<OnExceptionDefinition> getErrorHandlers(RouteContext routeContext)
ErrorHandlerBuilder
getErrorHandlers
in interface ErrorHandlerBuilder
routeContext
- the route contextpublic void setErrorHandlers(RouteContext routeContext, List<OnExceptionDefinition> exceptions)
ErrorHandlerBuilder
setErrorHandlers
in interface ErrorHandlerBuilder
routeContext
- the route contextexceptions
- the list of exceptions to handlepublic ErrorHandlerBuilderSupport exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
public ExceptionPolicyStrategy getExceptionPolicyStrategy()
ErrorHandlerBuilder
getExceptionPolicyStrategy
in interface ErrorHandlerBuilder
public void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
ErrorHandlerBuilder
OnExceptionDefinition
to use for a given thrown exception
setExceptionPolicyStrategy
in interface ErrorHandlerBuilder
exceptionPolicyStrategy
- the exception policy strategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |