|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition<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.ProcessorDefinition |
---|
log |
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)
|
RouteDefinition |
delayer(long delay)
Enable delayer for this route. |
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()
Get the CamelContext |
Long |
getDelayer()
|
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 |
RouteDefinition |
handleFault()
Enable handle fault for this route. |
Boolean |
isHandleFault()
|
boolean |
isStartable()
|
boolean |
isStoppable()
|
Boolean |
isStreamCache()
|
Boolean |
isTrace()
|
RouteDefinition |
noDelayer()
Disable delayer for this route. |
RouteDefinition |
noHandleFault()
Disable handle fault for this route. |
RouteDefinition |
noStreamCaching()
Disable stream caching for this route. |
RouteDefinition |
noTracing()
Disable tracing for this route. |
Endpoint |
resolveEndpoint(String uri)
|
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
void |
setDelayer(Long delayer)
|
void |
setGroup(String group)
|
void |
setHandleFault(Boolean handleFault)
|
void |
setInputs(List<FromDefinition> inputs)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
void |
setStreamCache(Boolean streamCache)
|
void |
setTrace(Boolean trace)
|
RouteDefinition |
streamCaching()
Enable stream caching for this route. |
String |
toString()
|
RouteDefinition |
tracing()
Enable tracing for this route. |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getId, 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()
OptionalIdentifiedDefinition
getShortName
in class OptionalIdentifiedDefinition<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 RouteDefinition noStreamCaching()
public RouteDefinition streamCaching()
public RouteDefinition noTracing()
public RouteDefinition tracing()
public RouteDefinition noHandleFault()
public RouteDefinition handleFault()
public RouteDefinition noDelayer()
public RouteDefinition delayer(long delay)
delay
- delay in millispublic 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()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic String getGroup()
public void setGroup(String group)
public Boolean isStreamCache()
public void setStreamCache(Boolean streamCache)
public Boolean isTrace()
public void setTrace(Boolean trace)
public Boolean isHandleFault()
public void setHandleFault(Boolean handleFault)
public Long getDelayer()
public void setDelayer(Long delayer)
protected RouteContext addRoutes(Collection<Route> routes, FromDefinition fromType) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |