Class WebClientContextService

java.lang.Object
io.helidon.webclient.context.WebClientContextService
All Implemented Interfaces:
io.helidon.builder.api.RuntimeType.Api<WebClientContextConfig>, io.helidon.common.config.NamedService, io.helidon.webclient.spi.WebClientService

public class WebClientContextService extends Object implements io.helidon.webclient.spi.WebClientService, io.helidon.builder.api.RuntimeType.Api<WebClientContextConfig>
Client service for context propagation.
  • Method Details

    • builder

      public static WebClientContextConfig.Builder builder()
      Fluent API builder to set up an instance.
      Returns:
      a new builder
    • create

      public static WebClientContextService create(io.helidon.common.config.Config config)
      Create a new instance from configuration.
      Parameters:
      config - configuration
      Returns:
      a new service
    • create

      public static WebClientContextService create(WebClientContextConfig config)
      Create a new instance from its configuration.
      Parameters:
      config - configuration
      Returns:
      a new service
    • create

      public static WebClientContextService create(Consumer<WebClientContextConfig.Builder> builderConsumer)
      Create a new instance customizing its configuration.
      Parameters:
      builderConsumer - consumer of configuration
      Returns:
      a new service
    • name

      public String name()
      Specified by:
      name in interface io.helidon.common.config.NamedService
      Specified by:
      name in interface io.helidon.webclient.spi.WebClientService
    • type

      public String type()
      Specified by:
      type in interface io.helidon.common.config.NamedService
      Specified by:
      type in interface io.helidon.webclient.spi.WebClientService
    • prototype

      public WebClientContextConfig prototype()
      Specified by:
      prototype in interface io.helidon.builder.api.RuntimeType.Api<WebClientContextConfig>
    • handle

      public io.helidon.webclient.api.WebClientServiceResponse handle(io.helidon.webclient.spi.WebClientService.Chain chain, io.helidon.webclient.api.WebClientServiceRequest clientRequest)
      Specified by:
      handle in interface io.helidon.webclient.spi.WebClientService