|
||||||||||
| 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 | |
|---|---|
void |
addInterceptor(AbstractInterceptorDefinition interceptor)
Adds an interceptor around the whole of this nodes processing |
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<AbstractInterceptorDefinition> |
getInterceptors()
|
List<ProcessorDefinition> |
getOutputs()
|
ServiceStatus |
getStatus()
Returns the status of the route if it has been registered with a CamelContext |
Boolean |
getStreamCaching()
|
RouteDefinition |
group(String name)
Set the group name for this route |
boolean |
isStartable()
|
boolean |
isStoppable()
|
RouteDefinition |
noStreamCaching()
Disable stream caching for this route |
Endpoint |
resolveEndpoint(String uri)
|
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
void |
setGroup(String group)
|
void |
setInputs(List<FromDefinition> inputs)
|
void |
setInterceptors(List<AbstractInterceptorDefinition> interceptors)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
void |
setStreamCaching(Boolean streamCaching)
Enable stream caching on this route |
RouteDefinition |
streamCaching()
Enable stream caching for this route |
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, getShortName, 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 Objectpublic 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
NoSuchEndpointExceptionpublic 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 List<AbstractInterceptorDefinition> getInterceptors()
public void setInterceptors(List<AbstractInterceptorDefinition> interceptors)
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)
CamelContextAwareCamelContext
setCamelContext in interface CamelContextAwarepublic String getGroup()
public void setGroup(String group)
public Boolean getStreamCaching()
public void setStreamCaching(Boolean streamCaching)
streamCaching - true for enabling stream caching
protected RouteContext addRoutes(Collection<Route> routes,
FromDefinition fromType)
throws Exception
Exceptionprotected void configureChild(ProcessorDefinition output)
configureChild in class ProcessorDefinition<ProcessorDefinition>public void addInterceptor(AbstractInterceptorDefinition interceptor)
ProcessorDefinition
addInterceptor in class ProcessorDefinition<ProcessorDefinition>interceptor - the interceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||