Package org.bremersee.apiclient.webflux
Class ReactiveApiClient.Builder
- java.lang.Object
-
- org.bremersee.apiclient.webflux.ReactiveApiClient.Builder
-
- Enclosing class:
- ReactiveApiClient
public static class ReactiveApiClient.Builder extends Object
The builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
build(Class<T> target)
Builds proxy.ReactiveApiClient.Builder
contract(ReactiveContract functionBundle)
Contract builder.ReactiveApiClient.Builder
errorHandler(ReactiveErrorHandler errorFunctionBundle)
Error handler builder.ReactiveApiClient.Builder
webClient(org.springframework.web.reactive.function.client.WebClient webClient)
Sets the web client with the base url.
-
-
-
Method Detail
-
webClient
public ReactiveApiClient.Builder webClient(org.springframework.web.reactive.function.client.WebClient webClient)
Sets the web client with the base url.- Parameters:
webClient
- the web client- Returns:
- the builder
-
contract
public ReactiveApiClient.Builder contract(ReactiveContract functionBundle)
Contract builder.- Parameters:
functionBundle
- the function bundle- Returns:
- the builder
-
errorHandler
public ReactiveApiClient.Builder errorHandler(ReactiveErrorHandler errorFunctionBundle)
Error handler builder.- Parameters:
errorFunctionBundle
- the error function bundle- Returns:
- the builder
-
build
public <T> T build(Class<T> target)
Builds proxy.- Type Parameters:
T
- the type parameter- Parameters:
target
- the target- Returns:
- the t
-
-