org.apache.camel.example.osgi
Class MyRouteBuilder

java.lang.Object
  extended by org.apache.camel.builder.BuilderSupport
      extended by org.apache.camel.builder.RouteBuilder
          extended by org.apache.camel.example.osgi.MyRouteBuilder
All Implemented Interfaces:
RoutesBuilder

public class MyRouteBuilder
extends RouteBuilder

A simple example router to show how to define the route with Java DSL

Version:

Field Summary
 
Fields inherited from class org.apache.camel.builder.RouteBuilder
log
 
Constructor Summary
MyRouteBuilder()
           
 
Method Summary
 void configure()
          Called on initialization to build the routes using the fluent builder syntax.

This is a central method for RouteBuilder implementations to implement the routes using the Java fluent builder syntax.

static void main(String[] args)
          Allow this route to be run as an application
 
Methods inherited from class org.apache.camel.builder.RouteBuilder
addRoutes, addRoutesToCamelContext, checkInitialized, configureRoute, configureRoutes, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRouteCollection, includeRoutes, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRoutes, setErrorHandlerBuilder, setRouteCollection, toString
 
Methods inherited from class org.apache.camel.builder.BuilderSupport
bean, bean, bean, bean, body, body, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, faultBody, faultBodyAs, getErrorHandlerBuilder, header, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, simple, systemProperty, systemProperty, xpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyRouteBuilder

public MyRouteBuilder()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Allow this route to be run as an application

Throws:
Exception

configure

public void configure()
Description copied from class: RouteBuilder
Called on initialization to build the routes using the fluent builder syntax.

This is a central method for RouteBuilder implementations to implement the routes using the Java fluent builder syntax.

Specified by:
configure in class RouteBuilder


Apache CAMEL