Class ClientBuilder

java.lang.Object
io.vrap.rmf.base.client.ClientBuilder
All Implemented Interfaces:
Builder<ApiHttpClient>

public class ClientBuilder extends Object implements Builder<ApiHttpClient>

The ClientBuilder is used to configure and create an ApiHttpClient. As the ApiHttpClient uses a stack of middlewares the Builder comes with methods to configure and attach new middlewares. Also it ensures that some default used middlewares are instantiated at the correct location in the middleware stack.

The default middlewares and services are added as Supplier to be able to override the ones provided by e.g.: defaultClient(URI)