org.apache.camel.builder
Class LoggingErrorHandlerBuilder
java.lang.Object
org.apache.camel.builder.ErrorHandlerBuilderSupport
org.apache.camel.builder.LoggingErrorHandlerBuilder
- All Implemented Interfaces:
- ErrorHandlerBuilder
public class LoggingErrorHandlerBuilder
- extends ErrorHandlerBuilderSupport
Uses the Logger
as an error handler, will log at ERROR level by default.
- Version:
- $Revision: 765920 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingErrorHandlerBuilder
public LoggingErrorHandlerBuilder()
LoggingErrorHandlerBuilder
public LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log)
LoggingErrorHandlerBuilder
public LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log,
LoggingLevel level)
supportTransacted
public boolean supportTransacted()
- Description copied from interface:
ErrorHandlerBuilder
- Whether this error handler supports transacted exchanges.
createErrorHandler
public Processor createErrorHandler(RouteContext routeContext,
Processor processor)
- Description copied from interface:
ErrorHandlerBuilder
- Creates the error handler interceptor
- Parameters:
routeContext
- the route contextprocessor
- the outer processor
- Returns:
- the error handler
getLevel
public LoggingLevel getLevel()
setLevel
public void setLevel(LoggingLevel level)
getLog
public org.apache.commons.logging.Log getLog()
setLog
public void setLog(org.apache.commons.logging.Log log)
level
public LoggingErrorHandlerBuilder level(LoggingLevel level)
log
public LoggingErrorHandlerBuilder log(org.apache.commons.logging.Log log)
Apache CAMEL