org.apache.camel.model
Class TryType

java.lang.Object
  extended by org.apache.camel.model.ProcessorType
      extended by org.apache.camel.model.OutputType
          extended by org.apache.camel.model.TryType

public class TryType
extends OutputType

Version:
$Revision: 1.1 $

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)
           
 List<CatchType> getCatchClauses()
           
 FinallyType getFinallyClause()
           
 List<ProcessorType> getOutputsWithoutCatches()
           
 CatchType handle(Class<?> exceptionType)
           
 FinallyType handleAll()
           
 TryType process(Processor processor)
          Adds the custom processor to this destination which could be a final destination, or could be a transformation in a pipeline
 void setOutputs(List<ProcessorType> outputs)
           
 TryType to(Collection<Endpoint> endpoints)
          Sends the exchange to a list of endpoint using the MulticastProcessor pattern
 TryType to(Endpoint... endpoints)
          Sends the exchange to a list of endpoints using the MulticastProcessor pattern
 TryType to(Endpoint endpoint)
          Sends the exchange to the given endpoint
 TryType to(String... uris)
          Sends the exchange to a list of endpoints using the MulticastProcessor pattern
 TryType to(String uri)
          Sends the exchange to the given endpoint URI
 String toString()
           
 
Methods inherited from class org.apache.camel.model.OutputType
configureChild, getInterceptors, getOutputs, setInterceptors
 
Methods inherited from class org.apache.camel.model.ProcessorType
addRoutes, aggregator, aggregator, beanRef, beanRef, choice, convertBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delayer, delayer, delayer, errorHandler, exception, filter, filter, filter, getErrorHandlerBuilder, getInheritErrorHandlerFlag, idempotentConsumer, inheritErrorHandler, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, makeProcessor, multicast, pipeline, pipeline, pipeline, policies, policy, proceed, recipientList, resequencer, resequencer, resequencer, setBody, setErrorHandlerBuilder, setHeader, setInheritErrorHandlerFlag, setOutBody, setOutHeader, setProperty, splitter, throttler, trace, trace, tryBlock, 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
Throws:
Exception

handle

public CatchType handle(Class<?> exceptionType)

handleAll

public FinallyType handleAll()

process

public TryType process(Processor processor)
Description copied from class: ProcessorType
Adds the custom processor to this destination which could be a final destination, or could be a transformation in a pipeline

Overrides:
process in class ProcessorType

to

public TryType to(Endpoint endpoint)
Description copied from class: ProcessorType
Sends the exchange to the given endpoint

Overrides:
to in class ProcessorType

to

public TryType to(Collection<Endpoint> endpoints)
Description copied from class: ProcessorType
Sends the exchange to a list of endpoint using the MulticastProcessor pattern

Overrides:
to in class ProcessorType

to

public TryType to(Endpoint... endpoints)
Description copied from class: ProcessorType
Sends the exchange to a list of endpoints using the MulticastProcessor pattern

Overrides:
to in class ProcessorType

to

public TryType to(String uri)
Description copied from class: ProcessorType
Sends the exchange to the given endpoint URI

Overrides:
to in class ProcessorType

to

public TryType to(String... uris)
Description copied from class: ProcessorType
Sends the exchange to a list of endpoints using the MulticastProcessor pattern

Overrides:
to in class ProcessorType

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

addOutput

public void addOutput(ProcessorType output)
Overrides:
addOutput in class ProcessorType

checkInitialized

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



Copyright © 2007 Apache Software Foundation. All Rights Reserved.