org.apache.camel.processor.exceptionpolicy
Class ExceptionPolicyKey

java.lang.Object
  extended by org.apache.camel.processor.exceptionpolicy.ExceptionPolicyKey

public final class ExceptionPolicyKey
extends Object

Exception policy key is a compound key for storing: route id + exception class + when => exception type.

This is used by Camel to store the onException types configured that has or has not predicates attached (when).


Constructor Summary
ExceptionPolicyKey(Class<? extends Throwable> exceptionClass, WhenDefinition when)
          Deprecated. will be removed in the near future, use the other constructor
ExceptionPolicyKey(String routeId, Class<? extends Throwable> exceptionClass, WhenDefinition when)
          Key for exception clause
 
Method Summary
 boolean equals(Object o)
           
 Class<?> getExceptionClass()
           
 String getRouteId()
           
 WhenDefinition getWhen()
           
 int hashCode()
           
static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass)
          Deprecated. will be removed in the near future. Use the constructor instead.
static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass, WhenDefinition when)
          Deprecated. will be removed in the near future. Use the constructor instead.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionPolicyKey

@Deprecated
public ExceptionPolicyKey(Class<? extends Throwable> exceptionClass,
                                     WhenDefinition when)
Deprecated. will be removed in the near future, use the other constructor


ExceptionPolicyKey

public ExceptionPolicyKey(String routeId,
                          Class<? extends Throwable> exceptionClass,
                          WhenDefinition when)
Key for exception clause

Parameters:
routeId - the route, or use null for a global scoped
exceptionClass - the exception class
when - optional predicate when the exception clause should trigger
Method Detail

getExceptionClass

public Class<?> getExceptionClass()

getWhen

public WhenDefinition getWhen()

getRouteId

public String getRouteId()

newInstance

@Deprecated
public static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass)
Deprecated. will be removed in the near future. Use the constructor instead.


newInstance

@Deprecated
public static ExceptionPolicyKey newInstance(Class<? extends Throwable> exceptionClass,
                                                        WhenDefinition when)
Deprecated. will be removed in the near future. Use the constructor instead.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Apache Camel