org.apache.camel.model
Class RouteElement
java.lang.Object
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: $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RouteElement
public RouteElement()
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.