org.apache.camel.model
Class TryType

java.lang.Object
  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>

Version:
$Revision: 36507 $

Field Summary
 
Fields inherited from class org.apache.camel.model.OutputType
outputs
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
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()
           
 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.
 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, addRoutes, aggregator, aggregator, aggregator, aggregator, aggregator, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, convertBodyTo, convertFaultBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delayer, delayer, delayer, delayer, errorHandler, exception, filter, filter, filter, filter, getErrorHandlerBuilder, getInheritErrorHandlerFlag, getLabel, getNodeFactory, getParent, handleFault, idempotentConsumer, idempotentConsumer, inheritErrorHandler, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, loadBalance, makeProcessor, marshal, marshal, marshal, marshal, multicast, multicast, multicast, pipeline, pipeline, pipeline, policies, policy, popBlock, proceed, process, processRef, pushBlock, recipientList, recipientList, removeFaultHeader, removeHeader, removeOutHeader, removeProperty, resequencer, resequencer, resequencer, resequencer, routingSlip, routingSlip, routingSlip, setBody, setBody, setErrorHandlerBuilder, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandlerFlag, setNodeFactory, setOutBody, setOutBody, setOutHeader, setOutHeader, setOutHeader, setParent, setProperty, setProperty, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, thread, thread, throttler, throwFault, throwFault, to, to, to, to, to, trace, trace, transform, transform, tryBlock, unmarshal, unmarshal, unmarshal, unmarshal, wrapInErrorHandler, wrapProcessor, wrapProcessorInInterceptors
 
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

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.


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 © 2008 IONA Open Source Community. All Rights Reserved.