Package io.vrap.rmf.base.client
Class BaseHttpClientSupplier
java.lang.Object
io.vrap.rmf.base.client.BaseHttpClientSupplier
- All Implemented Interfaces:
ExecutorHttpClientSupplier,HttpClientSupplier,Supplier<VrapHttpClient>
- Direct Known Subclasses:
ApacheHttpClientSupplier,AsyncHttpClientSupplier,JavaNetHttpClientSupplier,NettyHttpClientSupplier,OkHttp3ClientSupplier,OkHttp4ClientSupplier
In order to work, the sdk needs an
VrapHttpClient provider, this can be done by extending HttpClientSupplier
and exposing it as a service-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VrapHttpClientget()TheVrapHttpClientprovider methodabstract Supplier<VrapHttpClient>get(ExecutorService executorService)
-
Constructor Details
-
BaseHttpClientSupplier
public BaseHttpClientSupplier()
-
-
Method Details
-
get
TheVrapHttpClientprovider method- Specified by:
getin interfaceSupplier<VrapHttpClient>- Returns:
- HttpClient implementation
-
get
- Specified by:
getin interfaceExecutorHttpClientSupplier
-