org.apache.camel.model
Class RouteType
java.lang.Object
org.apache.camel.model.ProcessorType
org.apache.camel.model.RouteType
- All Implemented Interfaces:
- CamelContextAware
public class RouteType
- extends ProcessorType
- implements CamelContextAware
Represents an XML <route/> element
- Version:
- $Revision: $
Methods inherited from class org.apache.camel.model.ProcessorType |
addOutput, addRoutes, aggregator, aggregator, beanRef, beanRef, choice, convertBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, createProcessor, 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 |
RouteType
public RouteType()
RouteType
public RouteType(String uri)
RouteType
public RouteType(Endpoint endpoint)
toString
public String toString()
- Overrides:
toString
in class Object
addRoutes
public void addRoutes(CamelContext context)
throws Exception
- Throws:
Exception
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
getInterceptors
public List<InterceptorType> getInterceptors()
- Specified by:
getInterceptors
in class ProcessorType
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
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
addRoutes
protected void addRoutes(Collection<Route> routes,
FromType fromType)
throws Exception
- Throws:
Exception
configureChild
protected void configureChild(ProcessorType output)
- Overrides:
configureChild
in class ProcessorType
Copyright © 2007 Apache Software Foundation. All Rights Reserved.