org.apache.camel.spring.util
Class SimpleRouteBuilder

java.lang.Object
  extended by org.apache.camel.builder.BuilderSupport
      extended by org.apache.camel.builder.RouteBuilder
          extended by org.apache.camel.spring.util.SimpleRouteBuilder
All Implemented Interfaces:
RoutesBuilder

public class SimpleRouteBuilder
extends RouteBuilder

A simple RouteBuilder which can be configured directly with one or more from URIs, zero or more to URIs and an optional bean processing step.

Version:
$Revision: 750806 $

Constructor Summary
SimpleRouteBuilder()
           
 
Method Summary
protected  ProcessorDefinition addBeanCall(ProcessorDefinition route)
           
 void configure()
           
 String getBeanClass()
           
 String getBeanMethod()
           
 String getBeanRef()
           
 Class getBeanType()
           
 List<String> getFromUris()
           
 List<String> getToUris()
           
 void setBeanClass(String beanClass)
           
 void setBeanMethod(String beanMethod)
           
 void setBeanRef(String beanRef)
           
 void setBeanType(Class beanType)
           
 void setFromUri(String uri)
           
 void setFromUris(List<String> fromUris)
           
 void setToUri(String uri)
           
 void setToUris(List<String> toUris)
           
protected  List<String> singletonList(String value)
           
 
Methods inherited from class org.apache.camel.builder.RouteBuilder
addRoutes, addRoutesToCamelContext, checkInitialized, configureRoute, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRouteCollection, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRoutes, setErrorHandlerBuilder, setRouteCollection, toString
 
Methods inherited from class org.apache.camel.builder.BuilderSupport
bean, bean, bean, bean, body, body, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, faultBody, faultBodyAs, getErrorHandlerBuilder, header, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, systemProperty, systemProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleRouteBuilder

public SimpleRouteBuilder()
Method Detail

configure

public void configure()
               throws Exception
Specified by:
configure in class RouteBuilder
Throws:
Exception

setFromUri

public void setFromUri(String uri)

setToUri

public void setToUri(String uri)

getFromUris

public List<String> getFromUris()

setFromUris

public void setFromUris(List<String> fromUris)

getToUris

public List<String> getToUris()

setToUris

public void setToUris(List<String> toUris)

getBeanClass

public String getBeanClass()

setBeanClass

public void setBeanClass(String beanClass)

getBeanRef

public String getBeanRef()

setBeanRef

public void setBeanRef(String beanRef)

getBeanType

public Class getBeanType()

setBeanType

public void setBeanType(Class beanType)

getBeanMethod

public String getBeanMethod()

setBeanMethod

public void setBeanMethod(String beanMethod)

addBeanCall

protected ProcessorDefinition addBeanCall(ProcessorDefinition route)

singletonList

protected List<String> singletonList(String value)


Apache CAMEL