|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<RoutesDefinition>
org.apache.camel.model.RoutesDefinition
public class RoutesDefinition
Represents a collection of routes
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
RoutesDefinition()
|
|
| Method Summary | |
|---|---|
protected RouteDefinition |
createRoute()
|
RouteDefinition |
from(Endpoint... endpoints)
Creates a new route from the given endpoints |
RouteDefinition |
from(Endpoint endpoint)
Creates a new route from the given endpoint |
RouteDefinition |
from(String... uris)
Creates a new route from the given URI inputs |
RouteDefinition |
from(String uri)
Creates a new route from the given URI input |
CamelContext |
getCamelContext()
|
ErrorHandlerBuilder |
getErrorHandlerBuilder()
|
List<InterceptFromDefinition> |
getInterceptFroms()
|
List<InterceptDefinition> |
getIntercepts()
|
List<InterceptSendToEndpointDefinition> |
getInterceptSendTos()
|
List<OnCompletionDefinition> |
getOnCompletions()
|
List<OnExceptionDefinition> |
getOnExceptions()
|
List<RouteDefinition> |
getRoutes()
Returns the routes |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
InterceptDefinition |
intercept()
Creates and adds an interceptor that is triggered on every step in the route processing. |
InterceptFromDefinition |
interceptFrom()
Creates and adds an interceptor that is triggered when an exchange is received as input to any routes (eg from all the from) |
InterceptFromDefinition |
interceptFrom(String uri)
Creates and adds an interceptor that is triggered when an exchange is received as input to the route defined with the given endpoint (eg from the from) |
InterceptSendToEndpointDefinition |
interceptSendToEndpoint(String uri)
Creates and adds an interceptor that is triggered when an exchange is send to the given endpoint |
OnCompletionDefinition |
onCompletion()
Adds an on completion |
OnExceptionDefinition |
onException(Class exception)
Adds an on exception |
RouteDefinition |
route()
Creates a new route |
RouteDefinition |
route(RouteDefinition route)
Creates a new route using the given route |
void |
setCamelContext(CamelContext camelContext)
|
void |
setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
|
void |
setInterceptFroms(List<InterceptFromDefinition> interceptFroms)
|
void |
setIntercepts(List<InterceptDefinition> intercepts)
|
void |
setInterceptSendTos(List<InterceptSendToEndpointDefinition> interceptSendTos)
|
void |
setOnCompletions(List<OnCompletionDefinition> onCompletions)
|
void |
setOnExceptions(List<OnExceptionDefinition> onExceptions)
|
void |
setRoutes(List<RouteDefinition> routes)
Sets the routes to use |
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, id, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoutesDefinition()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<RoutesDefinition>public List<RouteDefinition> getRoutes()
RouteContainer
getRoutes in interface RouteContainerpublic void setRoutes(List<RouteDefinition> routes)
RouteContainer
setRoutes in interface RouteContainerroutes - the routespublic List<InterceptFromDefinition> getInterceptFroms()
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms)
public List<InterceptSendToEndpointDefinition> getInterceptSendTos()
public void setInterceptSendTos(List<InterceptSendToEndpointDefinition> interceptSendTos)
public List<InterceptDefinition> getIntercepts()
public void setIntercepts(List<InterceptDefinition> intercepts)
public List<OnExceptionDefinition> getOnExceptions()
public void setOnExceptions(List<OnExceptionDefinition> onExceptions)
public List<OnCompletionDefinition> getOnCompletions()
public void setOnCompletions(List<OnCompletionDefinition> onCompletions)
public CamelContext getCamelContext()
public void setCamelContext(CamelContext camelContext)
public ErrorHandlerBuilder getErrorHandlerBuilder()
public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
public RouteDefinition route()
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 uri
public RouteDefinition from(Endpoint... endpoints)
endpoints - the from endpoints
public RouteDefinition route(RouteDefinition route)
route - the route
public InterceptDefinition intercept()
public InterceptFromDefinition interceptFrom()
public InterceptFromDefinition interceptFrom(String uri)
uri - uri of the endpoint
public InterceptSendToEndpointDefinition interceptSendToEndpoint(String uri)
uri - uri of the endpoint
public OnExceptionDefinition onException(Class exception)
exception - the exception
public OnCompletionDefinition onCompletion()
protected RouteDefinition createRoute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||