org.apache.camel.model
Class TryType

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedType<Type>
      extended by org.apache.camel.model.ProcessorType<Type>
          extended by org.apache.camel.model.OutputType<TryType>
              extended by org.apache.camel.model.TryType
All Implemented Interfaces:
Block

public class TryType
extends OutputType<TryType>

Represents an XML <try/> element

Version:
$Revision: 1456 $

Field Summary
 
Fields inherited from class org.apache.camel.model.OutputType
outputs
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType
nodeCounters
 
Constructor Summary
TryType()
           
 
Method Summary
 void addOutput(ProcessorType output)
           
protected  void checkInitialized()
          Checks whether or not this object has been initialized
 Processor createProcessor(RouteContext routeContext)
           
 ProcessorType<? extends ProcessorType> end()
          Ends the current block
 TryType finallyBlock()
           
 List<CatchType> getCatchClauses()
           
 FinallyType getFinallyClause()
           
 List<ProcessorType<?>> getOutputsWithoutCatches()
           
 String getShortName()
          Returns a short name for this node which can be useful for ID generation or referring to related resources like images
 TryType handle(Class<?> exceptionType)
           
 TryType handleAll()
          Deprecated. Use finallyBlock() instead, as the name is better. Current name sugests that it handles exception, while it mimics java finally keyword. Will be removed in Camel 2.0.
 void setOutputs(List<ProcessorType<?>> outputs)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.model.OutputType
configureChild, getOutputs
 
Methods inherited from class org.apache.camel.model.ProcessorType
addInterceptor, addInterceptor, addRoutes, aggregator, aggregator, aggregator, aggregator, aggregator, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, convertBodyTo, convertBodyTo, convertFaultBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delayer, delayer, delayer, delayer, errorHandler, exception, filter, filter, filter, filter, getErrorHandlerBuilder, getErrorHandlerRef, getInheritErrorHandlerFlag, getLabel, getNodeFactory, getParent, handleFault, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, intercept, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, isInheritErrorHandler, loadBalance, loop, loop, loop, makeProcessor, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onException, pipeline, pipeline, pipeline, policies, policy, popBlock, proceed, process, processRef, pushBlock, recipientList, recipientList, removeFaultHeader, removeHeader, removeProperty, resequencer, resequencer, resequencer, resequencer, routingSlip, routingSlip, routingSlip, setBody, setBody, setErrorHandlerBuilder, setErrorHandlerBuilderIfNull, setErrorHandlerRef, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandlerFlag, setNodeFactory, setOutBody, setOutBody, setOutHeader, setOutHeader, setParent, setProperty, setProperty, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, stop, thread, thread, throttler, throwFault, throwFault, to, to, to, to, to, to, to, to, to, to, trace, trace, transform, transform, tryBlock, unmarshal, unmarshal, unmarshal, unmarshal, wrapInErrorHandler, wrapProcessor, wrapProcessorInInterceptors
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType
createId, describe, description, description, getDescription, getId, getNodeCounter, id, idOrCreate, setDescription, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TryType

public TryType()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getShortName

public String getShortName()
Description copied from class: OptionalIdentifiedType
Returns a short name for this node which can be useful for ID generation or referring to related resources like images

Overrides:
getShortName in class OptionalIdentifiedType<TryType>
Returns:
defaults to "node" but derived nodes should overload this to provide a unique name

createProcessor

public Processor createProcessor(RouteContext routeContext)
                          throws Exception
Overrides:
createProcessor in class ProcessorType<TryType>
Throws:
Exception

handle

public TryType handle(Class<?> exceptionType)

handleAll

@Deprecated
public TryType handleAll()
Deprecated. Use finallyBlock() instead, as the name is better. Current name sugests that it handles exception, while it mimics java finally keyword. Will be removed in Camel 2.0.


finallyBlock

public TryType finallyBlock()

end

public ProcessorType<? extends ProcessorType> end()
Description copied from class: ProcessorType
Ends the current block

Overrides:
end in class ProcessorType<TryType>

getCatchClauses

public List<CatchType> getCatchClauses()

getFinallyClause

public FinallyType getFinallyClause()

getOutputsWithoutCatches

public List<ProcessorType<?>> getOutputsWithoutCatches()

setOutputs

public void setOutputs(List<ProcessorType<?>> outputs)
Overrides:
setOutputs in class OutputType<TryType>

addOutput

public void addOutput(ProcessorType output)
Specified by:
addOutput in interface Block
Overrides:
addOutput in class ProcessorType<TryType>

checkInitialized

protected void checkInitialized()
Checks whether or not this object has been initialized



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