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

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedDefinition
      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 abstract class SendDefinition<Type extends ProcessorDefinition>
extends ProcessorDefinition<Type>

Base class for sending to an endpoint with an optional ExchangePattern

Version:
$Revision: 16422 $

Field Summary
protected  Endpoint endpoint
           
protected  String ref
           
protected  String uri
           
 
Fields inherited from class org.apache.camel.model.ProcessorDefinition
errorHandlerBuilder, errorHandlerRef, log
 
Constructor Summary
SendDefinition()
           
SendDefinition(String uri)
           
 
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
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aggregate, aop, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delay, delay, delay, doTry, end, enrich, enrich, enrichRef, filter, filter, filter, filter, getErrorHandlerBuilder, getInterceptStrategies, getNodeFactory, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, loadBalance, loadBalance, log, log, log, loop, loop, loop, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, process, processRef, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeProperty, resequence, resequence, resequence, resequencer, rollback, rollback, routeId, routingSlip, routingSlip, sample, sample, setBody, setBody, setErrorHandlerBuilder, 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, toAsync, toAsync, toAsync, toAsync, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getDescription, getId, 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()

SendDefinition

public SendDefinition(String uri)
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 © 2007-2010 IONA Open Source Community. All Rights Reserved.