org.apache.camel.builder
Class WhenBuilder

java.lang.Object
  extended by org.apache.camel.builder.BuilderSupport
      extended by org.apache.camel.builder.FromBuilder
          extended by org.apache.camel.builder.FilterBuilder
              extended by org.apache.camel.builder.WhenBuilder
All Implemented Interfaces:
ProcessorFactory

public class WhenBuilder
extends FilterBuilder

Version:
$Revision: 550575 $

Field Summary
 
Fields inherited from class org.apache.camel.builder.FromBuilder
DEFAULT_TRACE_CATEGORY
 
Constructor Summary
WhenBuilder(ChoiceBuilder parent, Predicate predicate)
           
 
Method Summary
 ChoiceBuilder process(Processor processor)
          Adds the custom processor to this destination which could be a final destination, or could be a transformation in a pipeline
 ChoiceBuilder to(Endpoint endpoint)
          Sends the exchange to the given endpoint
 ChoiceBuilder to(String uri)
          Sends the exchange to the given endpoint URI
 
Methods inherited from class org.apache.camel.builder.FilterBuilder
and, createProcessor, getPredicate, or
 
Methods inherited from class org.apache.camel.builder.FromBuilder
addProcessBuilder, addProcessor, addProcessorBuilder, aggregator, aggregator, choice, convertBodyTo, convertOutBodyTo, createRoute, delayer, delayer, delayer, errorHandler, filter, getBuilder, getFrom, getProcessors, getRouteBuilder, idempotentConsumer, inheritErrorHandler, intercept, intercept, makeProcessor, pipeline, pipeline, pipeline, policies, policy, recipientList, resequencer, resequencer, resequencer, setBody, setHeader, setOutBody, setOutHeader, setProperty, setRouteBuilder, splitter, throttler, to, to, to, trace, trace, wrapInErrorHandler, wrapProcessor
 
Methods inherited from class org.apache.camel.builder.BuilderSupport
body, bodyAs, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, deadLetterChannel, endpoint, endpoints, endpoints, getContext, getErrorHandlerBuilder, header, isInheritErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, noErrorHandler, outBody, outBody, setContext, setErrorHandlerBuilder, setInheritErrorHandler, systemProperty, systemProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhenBuilder

public WhenBuilder(ChoiceBuilder parent,
                   Predicate predicate)
Method Detail

to

public ChoiceBuilder to(Endpoint endpoint)
Description copied from class: FromBuilder
Sends the exchange to the given endpoint

Overrides:
to in class FromBuilder

to

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

Overrides:
to in class FromBuilder

process

public ChoiceBuilder process(Processor processor)
Description copied from class: FromBuilder
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 FromBuilder


Copyright © 2007 Apache Software Foundation. All Rights Reserved.