Class ReactiveApiClient


  • public class ReactiveApiClient
    extends ApiClient
    The reactive api client.
    Author:
    Christian Bremer
    • Constructor Detail

      • ReactiveApiClient

        public ReactiveApiClient​(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder,
                                 ReactiveContract contract)
        Instantiates a new reactive api client.
        Parameters:
        webClientBuilder - the web client builder
        contract - the contract
      • ReactiveApiClient

        public ReactiveApiClient​(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder,
                                 ReactiveContract contract,
                                 ReactiveErrorHandler errorHandler)
        Instantiates a new reactive api client.
        Parameters:
        webClientBuilder - the web client builder
        contract - the contract
        errorHandler - the error handler
    • Method Detail

      • newInstance

        public <T> T newInstance​(Class<T> target,
                                 String baseUrl)
        Description copied from class: ApiClient
        Creates new proxy instance.
        Specified by:
        newInstance in class ApiClient
        Type Parameters:
        T - the api interface type
        Parameters:
        target - the target
        baseUrl - the base url
        Returns:
        the proxy
      • builder

        public static ReactiveApiClient.Builder builder()
        Default api client builder.
        Returns:
        the web client proxy builder