org.apache.camel.model
Class RouteType

java.lang.Object
  extended by org.apache.camel.model.ProcessorType
      extended by org.apache.camel.model.RouteType
All Implemented Interfaces:
CamelContextAware

public class RouteType
extends ProcessorType
implements CamelContextAware

Represents an XML <route/> element

Version:
$Revision: $

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)
           
 void addRoutes(CamelContext context, Collection<Route> routes)
           
protected  void addRoutes(Collection<Route> routes, FromType fromType)
           
protected  void configureChild(ProcessorType output)
           
 RouteType from(String uri)
          Creates an input to the route
 CamelContext getCamelContext()
           
 List<FromType> getInputs()
           
 List<InterceptorType> getInterceptors()
           
 List<ProcessorType> getOutputs()
           
 Endpoint resolveEndpoint(String uri)
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setInputs(List<FromType> inputs)
           
 void setInterceptors(List<InterceptorType> interceptors)
           
 void setOutputs(List<ProcessorType> outputs)
           
 String toString()
           
 
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
 
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)
               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.