|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.AdviceWithBuilder<T>
public class AdviceWithBuilder<T extends ProcessorDefinition<?>>
A builder when using the advice with feature.
Constructor Summary | |
---|---|
AdviceWithBuilder(AdviceWithRouteBuilder builder,
String id,
String toString,
Class<T> type)
|
Method Summary | |
---|---|
ProcessorDefinition<?> |
after()
Insert the following node(s) after the matched node(s) |
ProcessorDefinition<?> |
before()
Insert the following node(s) before the matched node(s) |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdviceWithBuilder(AdviceWithRouteBuilder builder, String id, String toString, Class<T> type)
Method Detail |
---|
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 ProcessorDefinition<?> replace()
public void remove()
public ProcessorDefinition<?> before()
public ProcessorDefinition<?> after()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |