|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.RouteDefinitionHelper
public final class RouteDefinitionHelper
Helper for RouteDefinition
RouteDefinition before they are added to
CamelContext.
| Method Summary | |
|---|---|
static void |
forceAssignIds(CamelContext context,
List<RouteDefinition> routes)
Force assigning ids to the routes |
static void |
forceAssignIds(CamelContext context,
ProcessorDefinition processor)
Force assigning ids to the give node and all its children (recursively). |
static Set<String> |
gatherAllEndpointUris(CamelContext camelContext,
RouteDefinition route,
boolean includeInputs,
boolean includeOutputs,
boolean includeDynamic)
Gather all the endpoint uri's the route is using from the EIPs that has a static or dynamic endpoint defined. |
static Set<String> |
gatherAllStaticEndpointUris(CamelContext camelContext,
RouteDefinition route,
boolean includeInputs,
boolean includeOutputs)
Gather all the endpoint uri's the route is using from the EIPs that has a static endpoint defined. |
static void |
initParent(ProcessorDefinition parent)
|
static void |
prepareRoute(ModelCamelContext context,
RouteDefinition route)
Prepares the route. |
static void |
prepareRoute(ModelCamelContext context,
RouteDefinition route,
List<OnExceptionDefinition> onExceptions,
List<InterceptDefinition> intercepts,
List<InterceptFromDefinition> interceptFromDefinitions,
List<InterceptSendToEndpointDefinition> interceptSendToEndpointDefinitions,
List<OnCompletionDefinition> onCompletions)
Prepares the route which supports context scoped features such as onException, interceptors and onCompletions This method does not mark the route as prepared afterwards. |
static void |
prepareRouteForInit(RouteDefinition route,
List<ProcessorDefinition<?>> abstracts,
List<ProcessorDefinition<?>> lower)
|
static void |
sanityCheckRoute(RouteDefinition route)
Sanity check the route, that it has input(s) and outputs. |
static String |
validateUniqueIds(RouteDefinition target,
List<RouteDefinition> routes)
Validates that the target route has no duplicate id's from any of the existing routes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Set<String> gatherAllStaticEndpointUris(CamelContext camelContext,
RouteDefinition route,
boolean includeInputs,
boolean includeOutputs)
route - the routeincludeInputs - whether to include inputsincludeOutputs - whether to include outputs
public static Set<String> gatherAllEndpointUris(CamelContext camelContext,
RouteDefinition route,
boolean includeInputs,
boolean includeOutputs,
boolean includeDynamic)
route - the routeincludeInputs - whether to include inputsincludeOutputs - whether to include outputsincludeDynamic - whether to include dynamic outputs which has been in use during routing at runtime, gathered from the RuntimeEndpointRegistry.
public static void forceAssignIds(CamelContext context,
List<RouteDefinition> routes)
throws Exception
context - the camel contextroutes - the routes
Exception - is thrown if error force assign ids to the routes
public static String validateUniqueIds(RouteDefinition target,
List<RouteDefinition> routes)
target - the target routeroutes - the existing routes
public static void initParent(ProcessorDefinition parent)
public static void prepareRouteForInit(RouteDefinition route,
List<ProcessorDefinition<?>> abstracts,
List<ProcessorDefinition<?>> lower)
public static void prepareRoute(ModelCamelContext context,
RouteDefinition route)
context - the camel contextroute - the route
public static void prepareRoute(ModelCamelContext context,
RouteDefinition route,
List<OnExceptionDefinition> onExceptions,
List<InterceptDefinition> intercepts,
List<InterceptFromDefinition> interceptFromDefinitions,
List<InterceptSendToEndpointDefinition> interceptSendToEndpointDefinitions,
List<OnCompletionDefinition> onCompletions)
context - the camel contextroute - the routeonExceptions - optional list of onExceptionsintercepts - optional list of interceptorsinterceptFromDefinitions - optional list of interceptFromsinterceptSendToEndpointDefinitions - optional list of interceptSendToEndpointsonCompletions - optional list onCompletionspublic static void sanityCheckRoute(RouteDefinition route)
route - the route
IllegalArgumentException - is thrown if the route is invalid
public static void forceAssignIds(CamelContext context,
ProcessorDefinition processor)
context - the camel contextprocessor - the node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||