|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition<RoutesDefinition>
org.apache.camel.model.RoutesDefinition
public class RoutesDefinition
Represents a collection of routes
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 |
ModelCamelContext |
getCamelContext()
|
ErrorHandlerFactory |
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(ModelCamelContext camelContext)
|
void |
setErrorHandlerBuilder(ErrorHandlerFactory 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.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, 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 Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition<RoutesDefinition>
public List<RouteDefinition> getRoutes()
RouteContainer
getRoutes
in interface RouteContainer
public void setRoutes(List<RouteDefinition> routes)
RouteContainer
setRoutes
in interface RouteContainer
routes
- 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 ModelCamelContext getCamelContext()
public void setCamelContext(ModelCamelContext camelContext)
public ErrorHandlerFactory getErrorHandlerBuilder()
public void setErrorHandlerBuilder(ErrorHandlerFactory 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 |