Platform Http Vertx

Since Camel 3.2

The camel-platform-http-vertx is a Vert.x based implementation of the PlatformHttp SPI.

Vert.x Route

This implementation will by default lookup an instance of VertxPlatformHttpRouter on the registry however you can configure an existing instance using the getter/setter on the VertxPlatformHttpEngine class.

Auto detection from classpath

To use this implementation all you need to do is to add the camel-platform-http-vertx dependency to the classpath, and the platform http component should auto-detect this.


In addition to the implementation of the PlatformHttp SPI based on Vert.x, this module provides a Vert.x based HTTP server compatible with the VertxPlatformHttpEngine:

final int port = AvailablePortFinder.getNextAvailable();
final CamelContext context = new DefaultCamelContext();

VertxPlatformHttpServerConfiguration conf = new VertxPlatformHttpServerConfiguration();

context.addService(new VertxPlatformHttpServer(conf));
context.addRoutes(new RouteBuilder() {
    public void configure() throws Exception {
            .setBody().constant("Hello from Camel's PlatformHttp service");