|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorDefinition<CatchDefinition>
org.apache.camel.model.CatchDefinition
public class CatchDefinition
Represents an XML <catch/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
CatchDefinition()
|
|
CatchDefinition(Class exceptionType)
|
|
CatchDefinition(List<Class> exceptionClasses)
|
|
| Method Summary | |
|---|---|
protected List<Class> |
createExceptionClasses()
|
CatchProcessor |
createProcessor(RouteContext routeContext)
|
CatchDefinition |
exceptionClasses(Class exception)
Sets the exception class that the CatchType want to catch |
CatchDefinition |
exceptionClasses(List<Class> exceptionClasses)
Sets the exceptionClasses of the CatchType |
List<Class> |
getExceptionClasses()
|
List<String> |
getExceptions()
|
Predicate |
getHandledPolicy()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
WhenDefinition |
getOnWhen()
|
List<ProcessorDefinition> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
CatchDefinition |
handled(boolean handled)
Sets whether the exchange should be marked as handled or not. |
CatchDefinition |
handled(Expression handled)
Sets whether the exchange should be marked as handled or not. |
CatchDefinition |
handled(Predicate handled)
Sets whether the exchange should be marked as handled or not. |
ExpressionClause<CatchDefinition> |
onWhen()
Creates an expression to configure an additional predicate that should be true before the onCatch is triggered. |
CatchDefinition |
onWhen(Predicate predicate)
Sets an additional predicate that should be true before the onCatch is triggered. |
void |
setExceptionClasses(List<Class> exceptionClasses)
|
void |
setExceptions(List<String> exceptions)
|
void |
setHandledPolicy(Predicate handledPolicy)
|
void |
setOnWhen(WhenDefinition onWhen)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CatchDefinition()
public CatchDefinition(List<Class> exceptionClasses)
public CatchDefinition(Class exceptionType)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<CatchDefinition>public String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<CatchDefinition>
public CatchProcessor createProcessor(RouteContext routeContext)
throws Exception
createProcessor in class ProcessorDefinition<CatchDefinition>Exceptionpublic List<ProcessorDefinition> getOutputs()
getOutputs in class ProcessorDefinition<CatchDefinition>public void setOutputs(List<ProcessorDefinition> outputs)
public List<Class> getExceptionClasses()
public void setExceptionClasses(List<Class> exceptionClasses)
public CatchDefinition exceptionClasses(List<Class> exceptionClasses)
exceptionClasses - a list of the exception classes
public CatchDefinition onWhen(Predicate predicate)
predicate - predicate that determines true or false
public ExpressionClause<CatchDefinition> onWhen()
public CatchDefinition handled(boolean handled)
handled - handled or not
public CatchDefinition handled(Predicate handled)
handled - predicate that determines true or false
public CatchDefinition handled(Expression handled)
handled - expression that determines true or false
public CatchDefinition exceptionClasses(Class exception)
exception - the exception of class
public List<String> getExceptions()
public void setExceptions(List<String> exceptions)
public WhenDefinition getOnWhen()
public void setOnWhen(WhenDefinition onWhen)
public Predicate getHandledPolicy()
public void setHandledPolicy(Predicate handledPolicy)
protected List<Class> createExceptionClasses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||