org.apache.camel.model
Class RouteElement

java.lang.Object
  extended by org.apache.camel.model.RouteElement
All Implemented Interfaces:
ProcessorFactory, CamelContextAware

public class RouteElement
extends Object
implements CamelContextAware, ProcessorFactory

Represents an XML <route/> element

Version:
$Revision: $

Constructor Summary
RouteElement()
           
 
Method Summary
 Processor createProcessor()
           
 Route createRoute()
           
 CamelContext getCamelContext()
           
 Endpoint getEndpoint()
           
 String getUri()
           
protected  Endpoint resolveEndpoint()
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setEndpoint(Endpoint endpoint)
           
 void setUri(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteElement

public RouteElement()
Method Detail

createRoute

public Route createRoute()
                  throws Exception
Throws:
Exception

getUri

public String getUri()

setUri

public void setUri(String uri)

getCamelContext

public CamelContext getCamelContext()

setCamelContext

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

Specified by:
setCamelContext in interface CamelContextAware

getEndpoint

public Endpoint getEndpoint()

setEndpoint

public void setEndpoint(Endpoint endpoint)

createProcessor

public Processor createProcessor()
                          throws Exception
Specified by:
createProcessor in interface ProcessorFactory
Throws:
Exception

resolveEndpoint

protected Endpoint resolveEndpoint()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.