|
||||||||||
| 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.ProcessorType<ProcessorType>
org.apache.camel.model.RouteType
public class RouteType
Represents an XML <route/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.ProcessorType |
|---|
DEFAULT_TRACE_CATEGORY |
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
RouteType()
|
|
RouteType(Endpoint endpoint)
|
|
RouteType(String uri)
|
|
| Method Summary | |
|---|---|
void |
addInterceptor(InterceptorType interceptor)
Adds an interceptor around the whole of this nodes processing |
void |
addRoutes(CamelContext context,
Collection<Route> routes)
|
protected void |
addRoutes(Collection<Route> routes,
FromType fromType)
|
protected void |
configureChild(ProcessorType output)
|
RouteType |
from(Endpoint endpoint)
Creates an input to the route |
RouteType |
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<FromType> |
getInputs()
|
List<InterceptorType> |
getInterceptors()
|
List<ProcessorType<?>> |
getOutputs()
|
Boolean |
getStreamCaching()
|
RouteType |
group(String name)
Set the group name for this route |
RouteType |
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<FromType> inputs)
|
void |
setInterceptors(List<InterceptorType> interceptors)
|
void |
setOutputs(List<ProcessorType<?>> outputs)
|
void |
setStreamCaching(Boolean streamCaching)
Enable stream caching on this route |
RouteType |
streamCaching()
Enable stream caching for this Route. |
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, describe, description, description, getDescription, getId, getNodeCounter, getShortName, id, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RouteType()
public RouteType(String uri)
public RouteType(Endpoint endpoint)
| Method Detail |
|---|
public String toString()
toString in class Object
public void addRoutes(CamelContext context,
Collection<Route> routes)
throws Exception
Exception
public Endpoint resolveEndpoint(String uri)
throws NoSuchEndpointException
NoSuchEndpointExceptionpublic RouteType from(String uri)
public RouteType from(Endpoint endpoint)
public RouteType group(String name)
public List<InterceptorType> getInterceptors()
public void setInterceptors(List<InterceptorType> interceptors)
public List<FromType> getInputs()
public void setInputs(List<FromType> inputs)
public List<ProcessorType<?>> getOutputs()
getOutputs in class ProcessorType<ProcessorType>public void setOutputs(List<ProcessorType<?>> 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 void addRoutes(Collection<Route> routes,
FromType fromType)
throws Exception
Exceptionprotected void configureChild(ProcessorType output)
configureChild in class ProcessorType<ProcessorType>public RouteType noStreamCaching()
public RouteType streamCaching()
public void addInterceptor(InterceptorType interceptor)
ProcessorType
addInterceptor in class ProcessorType<ProcessorType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||