|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<Type> org.apache.camel.model.ProcessorDefinition<Type> org.apache.camel.model.OutputDefinition<TryDefinition> org.apache.camel.model.TryDefinition
public class TryDefinition
Represents an XML <try/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.OutputDefinition |
---|
outputs |
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
log |
Constructor Summary | |
---|---|
TryDefinition()
|
Method Summary | |
---|---|
void |
addOutput(ProcessorDefinition output)
|
protected void |
checkInitialized()
Checks whether or not this object has been initialized |
Processor |
createProcessor(RouteContext routeContext)
|
TryDefinition |
doCatch(Class... exceptionType)
Handles the given exception(s) |
TryDefinition |
doFinally()
The finally block for a given handle |
List<CatchDefinition> |
getCatchClauses()
|
FinallyDefinition |
getFinallyClause()
|
List<ProcessorDefinition> |
getOutputsWithoutCatches()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
TryDefinition |
handled(boolean handled)
Sets whether the exchange should be marked as handled or not. |
TryDefinition |
handled(Expression handled)
Sets whether the exchange should be marked as handled or not. |
TryDefinition |
handled(Predicate handled)
Sets whether the exchange should be marked as handled or not. |
ExpressionClause<TryDefinition> |
onWhen()
Creates an expression to configure an additional predicate that should be true before the onCatch is triggered. |
TryDefinition |
onWhen(Predicate predicate)
Sets an additional predicate that should be true before the onCatch is triggered. |
void |
setOutputs(List<ProcessorDefinition> outputs)
|
String |
toString()
|
Methods inherited from class org.apache.camel.model.OutputDefinition |
---|
getOutputs |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TryDefinition()
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in class OptionalIdentifiedDefinition<TryDefinition>
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorDefinition<TryDefinition>
Exception
public TryDefinition doCatch(Class... exceptionType)
exceptionType
- the exception(s)
public TryDefinition doFinally()
public TryDefinition onWhen(Predicate predicate)
predicate
- predicate that determines true or false
public ExpressionClause<TryDefinition> onWhen()
public TryDefinition handled(boolean handled)
handled
- handled or not
public TryDefinition handled(Predicate handled)
handled
- predicate that determines true or false
public TryDefinition handled(Expression handled)
handled
- expression that determines true or false
public List<CatchDefinition> getCatchClauses()
public FinallyDefinition getFinallyClause()
public List<ProcessorDefinition> getOutputsWithoutCatches()
public void setOutputs(List<ProcessorDefinition> outputs)
setOutputs
in class OutputDefinition<TryDefinition>
public void addOutput(ProcessorDefinition output)
addOutput
in interface Block
addOutput
in class ProcessorDefinition<TryDefinition>
protected void checkInitialized()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |