public class AdviceWithBuilder<T extends ProcessorDefinition<?>> extends Object
Constructor and Description |
---|
AdviceWithBuilder(AdviceWithRouteBuilder builder,
String id,
String toString,
String toUri,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
ProcessorDefinition<?> |
after()
Insert the following node(s) after the matched node(s)
|
ProcessorDefinition<?> |
before()
Insert the following node(s) before the matched node(s)
|
AdviceWithBuilder<T> |
maxDeep(int maxDeep)
Will only apply for nodes maximum levels deep.
|
void |
remove()
Removes the matched node(s)
|
ProcessorDefinition<?> |
replace()
Replaces the matched node(s) with the following nodes.
|
AdviceWithBuilder<T> |
selectFirst()
Will only apply the first node matched.
|
AdviceWithBuilder<T> |
selectIndex(int index)
Will only apply the n'th node matched.
|
AdviceWithBuilder<T> |
selectLast()
Will only apply the last node matched.
|
AdviceWithBuilder<T> |
selectRange(int from,
int to)
Will only apply the node in the index range matched.
|
public AdviceWithBuilder(AdviceWithRouteBuilder builder, String id, String toString, String toUri, Class<T> type)
public AdviceWithBuilder<T> selectFirst()
public AdviceWithBuilder<T> selectLast()
public AdviceWithBuilder<T> selectIndex(int index)
index
- index of node to match (is 0-based)public AdviceWithBuilder<T> selectRange(int from, int to)
from
- from index of node to start matching (inclusive)to
- to index of node to stop matching (inclusive)public AdviceWithBuilder<T> maxDeep(int maxDeep)
maxDeep
- the maximum levels to traverse deep in the Camel route tree.public ProcessorDefinition<?> replace()
public void remove()
public ProcessorDefinition<?> before()
public ProcessorDefinition<?> after()
Apache Camel