Class VirtualHostContextPathServiceBindingBuilder

java.lang.Object
com.linecorp.armeria.server.VirtualHostContextPathServiceBindingBuilder

@UnstableApi public final class VirtualHostContextPathServiceBindingBuilder extends Object
A builder class for binding an HttpService fluently. This class can be instantiated through VirtualHostBuilder.contextPath(String...).

Call build(HttpService) to build the HttpService and return to the VirtualHostBuilder.


 Server.builder()
       .virtualHost("foo.com")
       .contextPath("/v3")
       .route()
       .get("/service2")
       .build(service2); // served under "/v3/service2"