|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.builder.ErrorHandlerBuilderSupport
org.apache.camel.builder.ErrorHandlerBuilderRef
public class ErrorHandlerBuilderRef
Represents a proxy to an error handler builder which is resolved by named reference
| Field Summary | |
|---|---|
static String |
DEFAULT_ERROR_HANDLER_BUILDER
|
| Constructor Summary | |
|---|---|
ErrorHandlerBuilderRef(String ref)
|
|
| Method Summary | |
|---|---|
void |
addErrorHandlers(OnExceptionDefinition exception)
Adds error handler for the given exception type |
Processor |
createErrorHandler(RouteContext routeContext,
Processor processor)
Creates the error handler interceptor |
ErrorHandlerBuilder |
getHandler()
|
String |
getRef()
|
static boolean |
isErrorHandlerBuilderConfigured(String ref)
Returns whether a specific error handler builder has been configured or not. |
protected static ErrorHandlerBuilder |
lookupErrorHandlerBuilder(CamelContext camelContext)
|
static ErrorHandlerBuilder |
lookupErrorHandlerBuilder(RouteContext routeContext,
String ref)
Lookup the error handler by the given ref |
boolean |
supportTransacted()
Whether this error handler supports transacted exchanges. |
String |
toString()
|
| Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport |
|---|
configure, exceptionPolicyStrategy, getErrorHandlers, getExceptionPolicyStrategy, setErrorHandlers, setExceptionPolicyStrategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_ERROR_HANDLER_BUILDER
| Constructor Detail |
|---|
public ErrorHandlerBuilderRef(String ref)
| Method Detail |
|---|
public void addErrorHandlers(OnExceptionDefinition exception)
ErrorHandlerBuilder
addErrorHandlers in interface ErrorHandlerBuilderaddErrorHandlers in class ErrorHandlerBuilderSupportexception - the exception to handle
public Processor createErrorHandler(RouteContext routeContext,
Processor processor)
throws Exception
ErrorHandlerBuilder
routeContext - the route contextprocessor - the outer processor
Exception - is thrown if the error handler could not be createdpublic boolean supportTransacted()
ErrorHandlerBuilder
public static ErrorHandlerBuilder lookupErrorHandlerBuilder(RouteContext routeContext,
String ref)
routeContext - the route contextref - reference id for the error handler
protected static ErrorHandlerBuilder lookupErrorHandlerBuilder(CamelContext camelContext)
public static boolean isErrorHandlerBuilderConfigured(String ref)
public String getRef()
public ErrorHandlerBuilder getHandler()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||