|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ErrorHandlerBuilderrouteContext - the route contextexception - the exception to handleprotected void cloneBuilder(ErrorHandlerBuilderSupport other)
public void configure(RouteContext routeContext,
ErrorHandler handler)
ErrorHandlerBuilder
configure in interface ErrorHandlerBuilderrouteContext - the route contexthandler - the other error handlerpublic List<OnExceptionDefinition> getErrorHandlers(RouteContext routeContext)
ErrorHandlerBuilder
getErrorHandlers in interface ErrorHandlerBuilderrouteContext - the route context
public void setErrorHandlers(RouteContext routeContext,
List<OnExceptionDefinition> exceptions)
ErrorHandlerBuilder
setErrorHandlers in interface ErrorHandlerBuilderrouteContext - the route contextexceptions - the list of exceptions to handlepublic ErrorHandlerBuilderSupport exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
public ExceptionPolicyStrategy getExceptionPolicyStrategy()
ErrorHandlerBuilder
getExceptionPolicyStrategy in interface ErrorHandlerBuilderpublic void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
ErrorHandlerBuilderOnExceptionDefinition
to use for a given thrown exception
setExceptionPolicyStrategy in interface ErrorHandlerBuilderexceptionPolicyStrategy - the exception policy strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||