ServerΒΆ

The XioServer object holds the state and configuration data for a single server instance. It should be configured and instantiated by a XioServerBootstrap object.

1
2
3
XioServer server = XioServerBootstrap.fromConfig("example.application")
  .addToPipeline(new XioHttp1_1Pipeline())
  .build();

Each server will be created with a XioServerInstrumentation object which can be used to interrogate the server about the bound InetSocketAddress and the application protocol that the server is configured for.

The workhorse of the Server is the pipeline, in the previous example we create a simple http 1.1 pipeline that will response with 404 to any request.