org.apache.camel.model
Class ToType

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

public class ToType
extends ProcessorType

Represents an XML <to/> element

Version:
$Revision: $

Field Summary
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
Constructor Summary
ToType()
           
ToType(Endpoint endpoint)
           
ToType(String uri)
           
 
Method Summary
 Processor createProcessor(RouteContext routeContext)
           
 Endpoint getEndpoint()
           
 List<InterceptorType> getInterceptors()
           
 List<ProcessorType> getOutputs()
           
 String getRef()
           
 String getUri()
           
 Endpoint resolveEndpoint(RouteContext context)
           
 void setEndpoint(Endpoint endpoint)
           
 void setInterceptors(List<InterceptorType> interceptors)
           
 void setRef(String ref)
          Sets the name of the endpoint within the registry (such as the Spring ApplicationContext or JNDI) to use
 void setUri(String uri)
          Sets the URI of the endpoint to use
 String toString()
           
 
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, proceed, process, recipientList, resequencer, resequencer, resequencer, setBody, setErrorHandlerBuilder, setHeader, setInheritErrorHandlerFlag, setOutBody, setOutHeader, setProperty, splitter, throttler, to, to, to, to, to, 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

ToType

public ToType()

ToType

public ToType(String uri)

ToType

public ToType(Endpoint endpoint)
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

resolveEndpoint

public Endpoint resolveEndpoint(RouteContext context)

getUri

public String getUri()

setUri

public void setUri(String uri)
Sets the URI of the endpoint to use

Parameters:
uri - the endpoint URI to use

getRef

public String getRef()

setRef

public void setRef(String ref)
Sets the name of the endpoint within the registry (such as the Spring ApplicationContext or JNDI) to use

Parameters:
ref - the reference name to use

getEndpoint

public Endpoint getEndpoint()

setEndpoint

public void setEndpoint(Endpoint endpoint)

getOutputs

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

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.