|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorDefinition<ProcessorDefinition>
org.apache.camel.model.RouteDefinition
public class RouteDefinition
Represents an XML <route/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
nodeCounters |
Constructor Summary | |
---|---|
RouteDefinition()
|
|
RouteDefinition(Endpoint endpoint)
|
|
RouteDefinition(String uri)
|
Method Summary | |
---|---|
List<RouteContext> |
addRoutes(CamelContext context,
Collection<Route> routes)
|
protected RouteContext |
addRoutes(Collection<Route> routes,
FromDefinition fromType)
|
protected void |
configureChild(ProcessorDefinition output)
|
RouteDefinition |
from(Endpoint... endpoints)
Creates inputs to the route |
RouteDefinition |
from(Endpoint endpoint)
Creates an input to the route |
RouteDefinition |
from(String... uris)
Creates inputs to the route |
RouteDefinition |
from(String uri)
Creates an input to the route |
CamelContext |
getCamelContext()
|
String |
getGroup()
The group that this route belongs to; could be the name of the RouteBuilder class or be explicitly configured in the XML. |
List<FromDefinition> |
getInputs()
|
List<ProcessorDefinition> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
ServiceStatus |
getStatus()
Returns the status of the route if it has been registered with a CamelContext |
RouteDefinition |
group(String name)
Set the group name for this route |
boolean |
isStartable()
|
boolean |
isStoppable()
|
Endpoint |
resolveEndpoint(String uri)
|
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
void |
setGroup(String group)
|
void |
setInputs(List<FromDefinition> inputs)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
String |
toString()
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RouteDefinition()
public RouteDefinition(String uri)
public RouteDefinition(Endpoint endpoint)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedType
getShortName
in class OptionalIdentifiedType<ProcessorDefinition>
public ServiceStatus getStatus()
CamelContext
public boolean isStartable()
public boolean isStoppable()
public List<RouteContext> addRoutes(CamelContext context, Collection<Route> routes) throws Exception
Exception
public Endpoint resolveEndpoint(String uri) throws NoSuchEndpointException
NoSuchEndpointException
public RouteDefinition from(String uri)
uri
- the from uri
public RouteDefinition from(Endpoint endpoint)
endpoint
- the from endpoint
public RouteDefinition from(String... uris)
uris
- the from uris
public RouteDefinition from(Endpoint... endpoints)
endpoints
- the from endpoints
public RouteDefinition group(String name)
name
- the group name
public List<FromDefinition> getInputs()
public void setInputs(List<FromDefinition> inputs)
public List<ProcessorDefinition> getOutputs()
getOutputs
in class ProcessorDefinition<ProcessorDefinition>
public void setOutputs(List<ProcessorDefinition> outputs)
public CamelContext getCamelContext()
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic String getGroup()
public void setGroup(String group)
protected RouteContext addRoutes(Collection<Route> routes, FromDefinition fromType) throws Exception
Exception
protected void configureChild(ProcessorDefinition output)
configureChild
in class ProcessorDefinition<ProcessorDefinition>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |