org.apache.camel.spi
Interface RouteContext

All Known Implementing Classes:
DefaultRouteContext

public interface RouteContext

The context used to activate new routing rules

Version:
$Revision: 45123 $

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()
           
<T> T
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

getEndpoint

Endpoint<? extends Exchange> getEndpoint()

getFrom

FromType getFrom()

getRoute

RouteType getRoute()

getCamelContext

CamelContext getCamelContext()
Gets the CamelContext


createProcessor

Processor createProcessor(ProcessorType node)
                          throws Exception
Throws:
Exception

resolveEndpoint

Endpoint<? extends Exchange> resolveEndpoint(String uri)
Resolves an endpoint from the URI


resolveEndpoint

Endpoint<? extends Exchange> resolveEndpoint(String uri,
                                             String ref)
Resolves an endpoint from either a URI or a named reference


lookup

<T> T lookup(String name,
             Class<T> type)
lookup an object by name and type


commit

void commit()
Lets complete the route creation, creating a single event driven route for the current from endpoint with any processors required


addEventDrivenProcessor

void addEventDrivenProcessor(Processor processor)

intercept

void intercept(Intercept interceptor)

createProceedProcessor

Processor createProceedProcessor()

getInterceptStrategies

List<InterceptStrategy> getInterceptStrategies()
This method retrieves the InterceptStrategy instances this route context.


setInterceptStrategies

void setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
This method sets the InterceptStrategy instances on this route context.


addInterceptStrategy

void addInterceptStrategy(InterceptStrategy interceptStrategy)

getErrorHandlerWrappingStrategy

ErrorHandlerWrappingStrategy getErrorHandlerWrappingStrategy()
This method retrieves the ErrorHandlerWrappingStrategy.


setErrorHandlerWrappingStrategy

void setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy)
This method sets the ErrorHandlerWrappingStrategy.


setIsRouteAdded

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.


isRouteAdded

boolean isRouteAdded()


Copyright © 2008 IONA Open Source Community. All Rights Reserved.