|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.DefaultRouteContext
public class DefaultRouteContext
The context used to activate new routing rules
Constructor Summary | |
---|---|
DefaultRouteContext(CamelContext camelContext)
Only used for lazy construction from inside ExpressionType |
|
DefaultRouteContext(RouteType route,
FromType from,
Collection<Route> routes)
|
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 b)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRouteContext(RouteType route, FromType from, Collection<Route> routes)
public DefaultRouteContext(CamelContext camelContext)
Method Detail |
---|
public Endpoint<? extends Exchange> getEndpoint()
getEndpoint
in interface RouteContext
public FromType getFrom()
getFrom
in interface RouteContext
public RouteType getRoute()
getRoute
in interface RouteContext
public CamelContext getCamelContext()
RouteContext
getCamelContext
in interface RouteContext
public Processor createProcessor(ProcessorType node) throws Exception
createProcessor
in interface RouteContext
Exception
public Endpoint<? extends Exchange> resolveEndpoint(String uri)
RouteContext
resolveEndpoint
in interface RouteContext
public Endpoint<? extends Exchange> resolveEndpoint(String uri, String ref)
RouteContext
resolveEndpoint
in interface RouteContext
public <T> T lookup(String name, Class<T> type)
RouteContext
lookup
in interface RouteContext
public void commit()
RouteContext
commit
in interface RouteContext
public void addEventDrivenProcessor(Processor processor)
addEventDrivenProcessor
in interface RouteContext
public void intercept(Intercept interceptor)
intercept
in interface RouteContext
public Processor createProceedProcessor()
createProceedProcessor
in interface RouteContext
public List<InterceptStrategy> getInterceptStrategies()
RouteContext
getInterceptStrategies
in interface RouteContext
public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
RouteContext
setInterceptStrategies
in interface RouteContext
public void addInterceptStrategy(InterceptStrategy interceptStrategy)
addInterceptStrategy
in interface RouteContext
public ErrorHandlerWrappingStrategy getErrorHandlerWrappingStrategy()
RouteContext
getErrorHandlerWrappingStrategy
in interface RouteContext
public void setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy)
RouteContext
setErrorHandlerWrappingStrategy
in interface RouteContext
public boolean isRouteAdded()
isRouteAdded
in interface RouteContext
#setIsRouteAdded(boolean)}
public void setIsRouteAdded(boolean b)
RouteContext
setIsRouteAdded
in interface RouteContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |