|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.builder.BuilderSupport
org.apache.camel.builder.RouteBuilder
public abstract class RouteBuilder
A Java DSL which is
used to build Route
instances in a
Constructor Summary | |
---|---|
protected |
RouteBuilder()
|
protected |
RouteBuilder(CamelContext context)
|
Method Summary | |
---|---|
protected void |
checkInitialized()
|
abstract void |
configure()
Called on initialization to to build the required destinationBuilders |
protected CamelContext |
createContainer()
Factory method |
RouteBuilder |
errorHandler(ErrorHandlerBuilder errorHandlerBuilder)
Installs the given error handler builder |
ExceptionType |
exception(Class exceptionType)
Adds an exception handler route for the given exception type |
RouteType |
from(Endpoint endpoint)
Creates a new route from the given endpoint |
RouteType |
from(String uri)
Creates a new route from the given URI input |
CamelContext |
getContext()
|
List<Route> |
getRouteList()
Returns the routing map from inbound endpoints to processors |
RouteBuilder |
inheritErrorHandler(boolean value)
Configures whether or not the error handler is inherited by every processing node (or just the top most one) |
InterceptType |
intercept()
Adds a route for an interceptor; use the ProcessorType.proceed() method
to continue processing the underying route being intercepted. |
RouteBuilder |
intercept(DelegateProcessor interceptor)
Adds the given interceptor to this route |
OtherwiseType |
intercept(Predicate predicate)
Applies a route for an interceptor if the given predicate is true otherwise the interceptor route is not applied |
protected void |
populateRoutes(List<Route> routes)
|
Methods inherited from class org.apache.camel.builder.BuilderSupport |
---|
body, bodyAs, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, deadLetterChannel, endpoint, endpoints, endpoints, getErrorHandlerBuilder, header, isInheritErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, noErrorHandler, outBody, outBody, setContext, setErrorHandlerBuilder, setInheritErrorHandler, systemProperty, systemProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RouteBuilder()
protected RouteBuilder(CamelContext context)
Method Detail |
---|
public abstract void configure() throws Exception
Exception
public RouteType from(String uri)
public RouteType from(Endpoint endpoint)
public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder)
errorHandlerBuilder
- the error handler to be used by default for
all child routes
public RouteBuilder inheritErrorHandler(boolean value)
value
- the flag as to whether error handlers should be inherited or
not
public RouteBuilder intercept(DelegateProcessor interceptor)
public InterceptType intercept()
ProcessorType.proceed()
method
to continue processing the underying route being intercepted.
public OtherwiseType intercept(Predicate predicate)
public ExceptionType exception(Class exceptionType)
public CamelContext getContext()
getContext
in class BuilderSupport
public List<Route> getRouteList() throws Exception
Exception
protected void checkInitialized() throws Exception
Exception
protected void populateRoutes(List<Route> routes) throws Exception
Exception
protected CamelContext createContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |