org.apache.camel.model
Class SendDefinition<Type extends ProcessorDefinition>

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedType<Type>
      extended by org.apache.camel.model.ProcessorDefinition<Type>
          extended by org.apache.camel.model.SendDefinition<Type>
All Implemented Interfaces:
Block
Direct Known Subclasses:
InOnlyDefinition, InOutDefinition, ToDefinition, WireTapDefinition

public class SendDefinition<Type extends ProcessorDefinition>
extends ProcessorDefinition<Type>

Base class for sending to an endpoint with an optional ExchangePattern

Version:
$Revision: 751648 $

Field Summary
protected  Endpoint endpoint
           
protected  String ref
           
protected  String uri
           
 
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType
nodeCounters
 
Constructor Summary
SendDefinition()
           
 
Method Summary
 Processor createProcessor(RouteContext routeContext)
           
 Endpoint getEndpoint()
           
 String getLabel()
          Returns a label to describe this node such as the expression if some kind of expression node
 List<ProcessorDefinition> getOutputs()
           
 ExchangePattern getPattern()
           
 String getRef()
           
 String getUri()
           
 Object getUriOrRef()
          Returns the endpoint URI or the name of the reference to it
 Endpoint resolveEndpoint(RouteContext context)
           
 void setEndpoint(Endpoint endpoint)
           
 void setRef(String ref)
           
 void setUri(String uri)
           
 
Methods inherited from class org.apache.camel.model.ProcessorDefinition
addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delay, delay, delay, doTry, end, enrich, enrich, errorHandler, filter, filter, filter, filter, getErrorHandlerBuilder, getErrorHandlerRef, getInterceptStrategies, getNodeFactory, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, loadBalance, loadBalance, loop, loop, loop, makeProcessor, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, pipeline, pipeline, pipeline, policy, policy, process, processRef, recipientList, recipientList, removeFaultHeader, removeHeader, removeProperty, resequence, resequence, resequence, resequencer, rollback, rollback, routingSlip, routingSlip, setBody, setBody, setErrorHandlerBuilder, setErrorHandlerBuilderIfNull, setErrorHandlerRef, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setNodeFactory, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sortBody, sortBody, split, split, split, stop, threads, threads, throttle, throwException, to, to, to, to, to, to, to, to, to, to, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, wireTap, wireTap, wireTap, wrapChannel, wrapProcessor
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType
createId, description, getDescription, getId, getNodeCounter, getShortName, hasCustomIdAssigned, idOrCreate, setDescription, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

protected String uri

ref

protected String ref

endpoint

protected Endpoint endpoint
Constructor Detail

SendDefinition

public SendDefinition()
Method Detail

createProcessor

public Processor createProcessor(RouteContext routeContext)
                          throws Exception
Overrides:
createProcessor in class ProcessorDefinition<Type extends ProcessorDefinition>
Throws:
Exception

resolveEndpoint

public Endpoint resolveEndpoint(RouteContext context)

getRef

public String getRef()

setRef

public void setRef(String ref)

getUri

public String getUri()

setUri

public void setUri(String uri)

getEndpoint

public Endpoint getEndpoint()

setEndpoint

public void setEndpoint(Endpoint endpoint)

getPattern

public ExchangePattern getPattern()

getOutputs

public List<ProcessorDefinition> getOutputs()
Specified by:
getOutputs in class ProcessorDefinition<Type extends ProcessorDefinition>

getUriOrRef

public Object getUriOrRef()
Returns the endpoint URI or the name of the reference to it


getLabel

public String getLabel()
Description copied from class: ProcessorDefinition
Returns a label to describe this node such as the expression if some kind of expression node

Overrides:
getLabel in class ProcessorDefinition<Type extends ProcessorDefinition>


Copyright © 2009 Apache Software Foundation. All Rights Reserved.