org.apache.camel.model
Class RouteType

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedType<Type>
      extended by org.apache.camel.model.ProcessorType<ProcessorType>
          extended by org.apache.camel.model.RouteType
All Implemented Interfaces:
CamelContextAware, Block

public class RouteType
extends ProcessorType<ProcessorType>
implements CamelContextAware

Represents an XML <route/> element

Version:
$Revision: 54143 $

Field Summary
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType
nodeCounters
 
Constructor Summary
RouteType()
           
RouteType(Endpoint endpoint)
           
RouteType(String uri)
           
 
Method Summary
 void addInterceptor(InterceptorType interceptor)
          Adds an interceptor around the whole of this nodes processing
 void addRoutes(CamelContext context, Collection<Route> routes)
           
protected  void addRoutes(Collection<Route> routes, FromType fromType)
           
protected  void configureChild(ProcessorType output)
           
 RouteType from(Endpoint endpoint)
          Creates an input to the route
 RouteType from(String uri)
          Creates an input to the route
 CamelContext getCamelContext()
           
 String getGroup()
          The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML.
 List<FromType> getInputs()
           
 List<InterceptorType> getInterceptors()
           
 List<ProcessorType<?>> getOutputs()
           
 Boolean getStreamCaching()
           
 RouteType group(String name)
          Set the group name for this route
 RouteType noStreamCaching()
          Disable stream caching for this Route.
 Endpoint resolveEndpoint(String uri)
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setGroup(String group)
           
 void setInputs(List<FromType> inputs)
           
 void setInterceptors(List<InterceptorType> interceptors)
           
 void setOutputs(List<ProcessorType<?>> outputs)
           
 void setStreamCaching(Boolean streamCaching)
          Enable stream caching on this route
 RouteType streamCaching()
          Enable stream caching for this Route.
 String toString()
           
 
Methods inherited from class org.apache.camel.model.ProcessorType
addInterceptor, addOutput, addRoutes, aggregator, aggregator, aggregator, aggregator, aggregator, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, convertBodyTo, convertBodyTo, convertFaultBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, createProcessor, delayer, delayer, delayer, delayer, end, errorHandler, exception, filter, filter, filter, filter, getErrorHandlerBuilder, getErrorHandlerRef, getInheritErrorHandlerFlag, getLabel, getNodeFactory, getParent, handleFault, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, intercept, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, isInheritErrorHandler, loadBalance, loop, loop, loop, makeProcessor, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onException, pipeline, pipeline, pipeline, policies, policy, popBlock, proceed, process, processRef, pushBlock, recipientList, recipientList, removeFaultHeader, removeHeader, removeProperty, resequencer, resequencer, resequencer, resequencer, routingSlip, routingSlip, routingSlip, setBody, setBody, setErrorHandlerBuilder, setErrorHandlerBuilderIfNull, setErrorHandlerRef, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandlerFlag, setNodeFactory, setOutBody, setOutBody, setOutHeader, setOutHeader, setParent, setProperty, setProperty, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, stop, thread, thread, throttler, throwFault, throwFault, to, to, to, to, to, to, to, to, to, to, trace, trace, transform, transform, tryBlock, unmarshal, unmarshal, unmarshal, unmarshal, wrapInErrorHandler, wrapProcessor, wrapProcessorInInterceptors
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType
createId, describe, description, description, getDescription, getId, getNodeCounter, getShortName, id, idOrCreate, setDescription, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RouteType

public RouteType()

RouteType

public RouteType(String uri)

RouteType

public RouteType(Endpoint endpoint)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

addRoutes

public void addRoutes(CamelContext context,
                      Collection<Route> routes)
               throws Exception
Throws:
Exception

resolveEndpoint

public Endpoint resolveEndpoint(String uri)
                         throws NoSuchEndpointException
Throws:
NoSuchEndpointException

from

public RouteType from(String uri)
Creates an input to the route


from

public RouteType from(Endpoint endpoint)
Creates an input to the route


group

public RouteType group(String name)
Set the group name for this route


getInterceptors

public List<InterceptorType> getInterceptors()

setInterceptors

public void setInterceptors(List<InterceptorType> interceptors)

getInputs

public List<FromType> getInputs()

setInputs

public void setInputs(List<FromType> inputs)

getOutputs

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

setOutputs

public void setOutputs(List<ProcessorType<?>> outputs)

getCamelContext

public CamelContext getCamelContext()

setCamelContext

public void setCamelContext(CamelContext camelContext)
Description copied from interface: CamelContextAware
Injects the CamelContext

Specified by:
setCamelContext in interface CamelContextAware

getGroup

public String getGroup()
The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML. May be null.


setGroup

public void setGroup(String group)

getStreamCaching

public Boolean getStreamCaching()

setStreamCaching

public void setStreamCaching(Boolean streamCaching)
Enable stream caching on this route

Parameters:
streamCaching - true for enabling stream caching

addRoutes

protected void addRoutes(Collection<Route> routes,
                         FromType fromType)
                  throws Exception
Throws:
Exception

configureChild

protected void configureChild(ProcessorType output)
Overrides:
configureChild in class ProcessorType<ProcessorType>

noStreamCaching

public RouteType noStreamCaching()
Disable stream caching for this Route.


streamCaching

public RouteType streamCaching()
Enable stream caching for this Route.


addInterceptor

public void addInterceptor(InterceptorType interceptor)
Description copied from class: ProcessorType
Adds an interceptor around the whole of this nodes processing

Overrides:
addInterceptor in class ProcessorType<ProcessorType>


Copyright © 2009 IONA Open Source Community. All Rights Reserved.