|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(RouteContext routeContext,
OnExceptionDefinition exception)
Adds error handler for the given exception type |
ErrorHandlerBuilder |
cloneBuilder()
Clones this builder so each RouteBuilder has its private builder
to use, to avoid changes from one RouteBuilder to influence the
others. |
protected void |
cloneBuilder(ErrorHandlerBuilderRef other)
|
Processor |
createErrorHandler(RouteContext routeContext,
Processor processor)
Creates the error handler |
String |
getRef()
|
static boolean |
isErrorHandlerBuilderConfigured(String ref)
Returns whether a specific error handler builder has been configured or not. |
protected static ErrorHandlerFactory |
lookupErrorHandlerBuilder(ModelCamelContext camelContext)
|
static ErrorHandlerFactory |
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 |
---|
cloneBuilder, 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(RouteContext routeContext, OnExceptionDefinition exception)
ErrorHandlerBuilder
addErrorHandlers
in interface ErrorHandlerBuilder
addErrorHandlers
in class ErrorHandlerBuilderSupport
routeContext
- the route contextexception
- the exception to handlepublic Processor createErrorHandler(RouteContext routeContext, Processor processor) throws Exception
ErrorHandlerFactory
routeContext
- the route contextprocessor
- the outer processor
Exception
- is thrown if the error handler could not be createdpublic boolean supportTransacted()
ErrorHandlerBuilder
public ErrorHandlerBuilder cloneBuilder()
ErrorHandlerBuilder
RouteBuilder
has its private builder
to use, to avoid changes from one RouteBuilder
to influence the
others.
This is needed by the current Camel 2.x architecture.
ErrorHandlerBuilder
protected void cloneBuilder(ErrorHandlerBuilderRef other)
public static ErrorHandlerFactory lookupErrorHandlerBuilder(RouteContext routeContext, String ref)
routeContext
- the route contextref
- reference id for the error handler
protected static ErrorHandlerFactory lookupErrorHandlerBuilder(ModelCamelContext camelContext)
public static boolean isErrorHandlerBuilderConfigured(String ref)
public String getRef()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |