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: 1532 $

Constructor Summary
LoggingErrorHandlerBuilder()
           
LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log)
           
LoggingErrorHandlerBuilder(org.apache.commons.logging.Log log, LoggingLevel level)
           
 
Method Summary
 ErrorHandlerBuilder copy()
          Creates a copy of this builder
 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)
           
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, configure, getExceptions, setErrorHandlers
 
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

copy

public ErrorHandlerBuilder copy()
Description copied from interface: ErrorHandlerBuilder
Creates a copy of this builder


createErrorHandler

public Processor createErrorHandler(RouteContext routeContext,
                                    Processor processor)
Description copied from interface: ErrorHandlerBuilder
Creates the error handler interceptor


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)


Copyright © 2009 IONA Open Source Community. All Rights Reserved.