org.apache.camel.model
Class ChoiceType

java.lang.Object
  extended by org.apache.camel.model.ProcessorType
      extended by org.apache.camel.model.ChoiceType

public class ChoiceType
extends ProcessorType

Version:
$Revision: 1.1 $

Field Summary
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
Constructor Summary
ChoiceType()
           
 
Method Summary
 Processor createProcessor(RouteContext routeContext)
           
 List<InterceptorType> getInterceptors()
           
 OtherwiseType getOtherwise()
           
 List<ProcessorType> getOutputs()
           
 List<WhenType> getWhenClauses()
           
 OtherwiseType otherwise()
           
 ChoiceType proceed()
           
 void setInterceptors(List<InterceptorType> interceptors)
           
 void setOtherwise(OtherwiseType otherwise)
           
 void setWhenClauses(List<WhenType> whenClauses)
           
 ChoiceType to(Collection<Endpoint> endpoints)
          Sends the exchange to a list of endpoint using the MulticastProcessor pattern
 ChoiceType to(Endpoint... endpoints)
          Sends the exchange to a list of endpoints using the MulticastProcessor pattern
 ChoiceType to(Endpoint endpoint)
          Sends the exchange to the given endpoint
 ChoiceType to(String... uris)
          Sends the exchange to a list of endpoints using the MulticastProcessor pattern
 ChoiceType to(String uri)
          Sends the exchange to the given endpoint URI
 String toString()
           
 ChoiceType when(Predicate predicate)
           
 
Methods inherited from class org.apache.camel.model.ProcessorType
addOutput, addRoutes, aggregator, aggregator, beanRef, beanRef, choice, configureChild, 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, process, 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

ChoiceType

public ChoiceType()
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

when

public ChoiceType when(Predicate predicate)

otherwise

public OtherwiseType otherwise()

proceed

public ChoiceType proceed()
Overrides:
proceed in class ProcessorType

to

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

Overrides:
to in class ProcessorType

to

public ChoiceType 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 ChoiceType 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 ChoiceType to(String uri)
Description copied from class: ProcessorType
Sends the exchange to the given endpoint URI

Overrides:
to in class ProcessorType

to

public ChoiceType 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

getWhenClauses

public List<WhenType> getWhenClauses()

setWhenClauses

public void setWhenClauses(List<WhenType> whenClauses)

getOutputs

public List<ProcessorType> getOutputs()
Specified by:
getOutputs in class ProcessorType

getOtherwise

public OtherwiseType getOtherwise()

setOtherwise

public void setOtherwise(OtherwiseType otherwise)

getInterceptors

public List<InterceptorType> getInterceptors()
Specified by:
getInterceptors in class ProcessorType

setInterceptors

public void setInterceptors(List<InterceptorType> interceptors)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.