org.apache.camel.model
Class RouteType

java.lang.Object
  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: 36565 $

Field Summary
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
Constructor Summary
RouteType()
           
RouteType(Endpoint endpoint)
           
RouteType(String uri)
           
 
Method Summary
 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()
           
 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)
           
 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, convertFaultBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, createProcessor, delayer, delayer, delayer, delayer, end, errorHandler, exception, filter, filter, filter, filter, getErrorHandlerBuilder, getInheritErrorHandlerFlag, getLabel, getNodeFactory, getParent, handleFault, idempotentConsumer, idempotentConsumer, inheritErrorHandler, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, loadBalance, makeProcessor, marshal, marshal, marshal, marshal, multicast, multicast, multicast, pipeline, pipeline, pipeline, policies, policy, popBlock, proceed, process, processRef, pushBlock, recipientList, recipientList, removeFaultHeader, removeHeader, removeOutHeader, removeProperty, resequencer, resequencer, resequencer, resequencer, routingSlip, routingSlip, routingSlip, setBody, setBody, setErrorHandlerBuilder, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandlerFlag, setNodeFactory, setOutBody, setOutBody, setOutHeader, setOutHeader, setOutHeader, setParent, setProperty, setProperty, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, thread, thread, throttler, throwFault, throwFault, to, to, to, to, to, trace, trace, transform, transform, tryBlock, unmarshal, unmarshal, unmarshal, unmarshal, wrapInErrorHandler, wrapProcessor, wrapProcessorInInterceptors
 
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)

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.



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