org.apache.camel.builder
Class LoggingErrorHandlerBuilder

java.lang.Object
  extended by org.apache.camel.builder.ErrorHandlerBuilderSupport
      extended by 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 $

Constructor Summary
LoggingErrorHandlerBuilder()
           
LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log)
           
LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log, LoggingLevel level)
           
 
Method Summary
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
          Creates the error handler interceptor
 LoggingLevel getLevel()
           
 org.apache.commons.logging.Log getLog()
           
 LoggingErrorHandlerBuilder level(LoggingLevel level)
           
 LoggingErrorHandlerBuilder log(org.apache.commons.logging.Log log)
           
 void setLevel(LoggingLevel level)
           
 void setLog(org.apache.commons.logging.Log log)
           
 boolean supportTransacted()
          Whether this error handler supports transacted exchanges.
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, configure, exceptionPolicyStrategy, getErrorHandlers, getExceptionPolicyStrategy, setErrorHandlers, setExceptionPolicyStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingErrorHandlerBuilder

public LoggingErrorHandlerBuilder()

LoggingErrorHandlerBuilder

public LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log)

LoggingErrorHandlerBuilder

public LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log,
                                  LoggingLevel level)
Method Detail

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 context
processor - 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