org.apache.camel.builder
Class DestinationBuilder<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.builder.BuilderSupport<E>
      extended by org.apache.camel.builder.DestinationBuilder<E>
All Implemented Interfaces:
ProcessorBuilder<E>
Direct Known Subclasses:
ChoiceBuilder, ConfiguredDestinationBuilder, PredicateBuilder

public class DestinationBuilder<E extends Exchange>
extends BuilderSupport<E>
implements ProcessorBuilder<E>

Version:
$Revision: 520404 $

Constructor Summary
DestinationBuilder(DestinationBuilder<E> parent)
           
DestinationBuilder(RouteBuilder<E> builder, Endpoint<E> from)
           
 
Method Summary
 void addProcessBuilder(ProcessorBuilder<E> processBuilder)
           
 void addProcessor(Processor<E> processor)
           
 ChoiceBuilder<E> choice()
          Creates a choice of one or more predicates with an otherwise clause
 Processor<E> createProcessor()
           
 Endpoint<E> endpoint(String uri)
          Resolves the given URI to an endpoint
 PredicateBuilder<E> filter(Predicate<E> predicate)
          Creates a predicate which is applied and only if it is true then the exchange is forwarded to the destination
 RouteBuilder<E> getBuilder()
           
 Endpoint<E> getFrom()
           
 List<Processor<E>> getProcessors()
           
 InterceptorBuilder<E> intercept()
           
 InterceptorBuilder<E> intercept(InterceptorProcessor<E> interceptor)
           
 ProcessorBuilder<E> process(Processor<E> processor)
          Adds the custom processor to this destination
 RecipientListBuilder<E> recipientList(ValueBuilder<E> valueBuilder)
          Creates a dynamic Recipient List pattern.
 ProcessorBuilder<E> to(Endpoint<E>... endpoints)
          Sends the exchange to the given endpoint
 ProcessorBuilder<E> to(Endpoint<E> endpoint)
          Sends the exchange to the given endpoint
 ProcessorBuilder<E> to(String... uris)
          Sends the exchange to the given endpoint URI
 ProcessorBuilder<E> to(String uri)
          Sends the exchange to the given endpoint URI
 
Methods inherited from class org.apache.camel.builder.BuilderSupport
header
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestinationBuilder

public DestinationBuilder(RouteBuilder<E> builder,
                          Endpoint<E> from)

DestinationBuilder

public DestinationBuilder(DestinationBuilder<E> parent)
Method Detail

endpoint

public Endpoint<E> endpoint(String uri)
Resolves the given URI to an endpoint


to

public ProcessorBuilder<E> to(String uri)
Sends the exchange to the given endpoint URI


to

public ProcessorBuilder<E> to(Endpoint<E> endpoint)
Sends the exchange to the given endpoint


to

public ProcessorBuilder<E> to(String... uris)
Sends the exchange to the given endpoint URI


to

public ProcessorBuilder<E> to(Endpoint<E>... endpoints)
Sends the exchange to the given endpoint


process

public ProcessorBuilder<E> process(Processor<E> processor)
Adds the custom processor to this destination


filter

public PredicateBuilder<E> filter(Predicate<E> predicate)
Creates a predicate which is applied and only if it is true then the exchange is forwarded to the destination

Returns:
the builder for a predicate

choice

public ChoiceBuilder<E> choice()
Creates a choice of one or more predicates with an otherwise clause

Returns:
the builder for a choice expression

recipientList

public RecipientListBuilder<E> recipientList(ValueBuilder<E> valueBuilder)
Creates a dynamic Recipient List pattern.

Parameters:
valueBuilder -

getBuilder

public RouteBuilder<E> getBuilder()

getFrom

public Endpoint<E> getFrom()

addProcessBuilder

public void addProcessBuilder(ProcessorBuilder<E> processBuilder)

addProcessor

public void addProcessor(Processor<E> processor)

createProcessor

public Processor<E> createProcessor()
Specified by:
createProcessor in interface ProcessorBuilder<E extends Exchange>

getProcessors

public List<Processor<E>> getProcessors()

intercept

public InterceptorBuilder<E> intercept()

intercept

public InterceptorBuilder<E> intercept(InterceptorProcessor<E> interceptor)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.