|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RouteContext
The context used to activate new routing rules
Method Summary | ||
---|---|---|
void |
addEventDrivenProcessor(Processor processor)
|
|
void |
addInterceptStrategy(InterceptStrategy interceptStrategy)
|
|
void |
commit()
Lets complete the route creation, creating a single event driven route for the current from endpoint with any processors required |
|
Processor |
createProceedProcessor()
|
|
Processor |
createProcessor(ProcessorType node)
|
|
CamelContext |
getCamelContext()
Gets the CamelContext |
|
Endpoint<? extends Exchange> |
getEndpoint()
|
|
ErrorHandlerWrappingStrategy |
getErrorHandlerWrappingStrategy()
This method retrieves the ErrorHandlerWrappingStrategy. |
|
FromType |
getFrom()
|
|
List<InterceptStrategy> |
getInterceptStrategies()
This method retrieves the InterceptStrategy instances this route context. |
|
RouteType |
getRoute()
|
|
void |
intercept(Intercept interceptor)
|
|
boolean |
isRouteAdded()
|
|
|
lookup(String name,
Class<T> type)
lookup an object by name and type |
|
Endpoint<? extends Exchange> |
resolveEndpoint(String uri)
Resolves an endpoint from the URI |
|
Endpoint<? extends Exchange> |
resolveEndpoint(String uri,
String ref)
Resolves an endpoint from either a URI or a named reference |
|
void |
setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy)
This method sets the ErrorHandlerWrappingStrategy. |
|
void |
setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
This method sets the InterceptStrategy instances on this route context. |
|
void |
setIsRouteAdded(boolean value)
If this flag is true, {@link ProcessorType#addRoutes(RouteContext, java.util.Collection) will not add processor to addEventDrivenProcessor to the RouteContext and it will prevent from adding an EventDrivenRoute. |
Method Detail |
---|
Endpoint<? extends Exchange> getEndpoint()
FromType getFrom()
RouteType getRoute()
CamelContext getCamelContext()
Processor createProcessor(ProcessorType node) throws Exception
Exception
Endpoint<? extends Exchange> resolveEndpoint(String uri)
Endpoint<? extends Exchange> resolveEndpoint(String uri, String ref)
<T> T lookup(String name, Class<T> type)
void commit()
void addEventDrivenProcessor(Processor processor)
void intercept(Intercept interceptor)
Processor createProceedProcessor()
List<InterceptStrategy> getInterceptStrategies()
void setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
interceptStrategies
- void addInterceptStrategy(InterceptStrategy interceptStrategy)
ErrorHandlerWrappingStrategy getErrorHandlerWrappingStrategy()
void setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy)
void setIsRouteAdded(boolean value)
boolean isRouteAdded()
#setIsRouteAdded(boolean)}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |