|
||||||||||
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)
Adds an event driven processor |
|
void |
addInterceptStrategy(InterceptStrategy interceptStrategy)
Adds a InterceptStrategy to this route context |
|
void |
commit()
Lets complete the route creation, creating a single event driven route for the current from endpoint with any processors required |
|
Processor |
createProceedProcessor()
Creates a proceed processor |
|
Processor |
createProcessor(ProcessorType node)
Creates a processor |
|
CamelContext |
getCamelContext()
Gets the camel context |
|
DataFormatType |
getDataFormat(String ref)
Get a DataFormatType by ref name |
|
Endpoint<? extends Exchange> |
getEndpoint()
Gets the endpoint |
|
ErrorHandlerWrappingStrategy |
getErrorHandlerWrappingStrategy()
This method retrieves the ErrorHandlerWrappingStrategy. |
|
FromType |
getFrom()
Gets the from type |
|
List<InterceptStrategy> |
getInterceptStrategies()
This method retrieves the InterceptStrategy instances this route context. |
|
RouteType |
getRoute()
Get the route type |
|
void |
intercept(Intercept interceptor)
Intercepts with the given interceptor |
|
boolean |
isRouteAdded()
Returns the isRouteAdded flag |
|
|
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, 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
node
- the node
Exception
- can be thrownEndpoint<? extends Exchange> resolveEndpoint(String uri)
uri
- the URI
Endpoint<? extends Exchange> resolveEndpoint(String uri, String ref)
uri
- the URI orref
- the named reference
<T> T lookup(String name, Class<T> type)
name
- the name to lookuptype
- the expected type
void commit()
void addEventDrivenProcessor(Processor processor)
processor
- the processorvoid intercept(Intercept interceptor)
interceptor
- the interceptorProcessor createProceedProcessor()
List<InterceptStrategy> getInterceptStrategies()
void setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
interceptStrategies
- the strategiesvoid addInterceptStrategy(InterceptStrategy interceptStrategy)
interceptStrategy
- the strategyErrorHandlerWrappingStrategy getErrorHandlerWrappingStrategy()
void setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy)
strategy
- the strategyvoid setIsRouteAdded(boolean value)
ProcessorType.addRoutes(RouteContext, java.util.Collection)
will not add processor to addEventDrivenProcessor to the RouteContext and it
will prevent from adding an EventDrivenRoute.
value
- the flagboolean isRouteAdded()
DataFormatType getDataFormat(String ref)
ref
- the ref name to lookup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |