Package org.sdase.commons.client.jersey
Class JerseyClientBundle.Builder<C extends io.dropwizard.core.Configuration>
java.lang.Object
org.sdase.commons.client.jersey.JerseyClientBundle.Builder<C>
- All Implemented Interfaces:
JerseyClientBundle.FinalBuilder<C>
,JerseyClientBundle.InitialBuilder<C>
- Enclosing class:
- JerseyClientBundle<C extends io.dropwizard.core.Configuration>
public static class JerseyClientBundle.Builder<C extends io.dropwizard.core.Configuration>
extends Object
implements JerseyClientBundle.InitialBuilder<C>, JerseyClientBundle.FinalBuilder<C>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
<C1 extends io.dropwizard.core.Configuration>
JerseyClientBundle.FinalBuilder<C1>withConsumerTokenProvider
(JerseyClientBundle.ConsumerTokenProvider<C1> consumerTokenProvider) withOpenTelemetry
(io.opentelemetry.api.OpenTelemetry openTelemetry) Specifies a custom telemetry instance to use.
-
Method Details
-
withConsumerTokenProvider
public <C1 extends io.dropwizard.core.Configuration> JerseyClientBundle.FinalBuilder<C1> withConsumerTokenProvider(JerseyClientBundle.ConsumerTokenProvider<C1> consumerTokenProvider) - Specified by:
withConsumerTokenProvider
in interfaceJerseyClientBundle.InitialBuilder<C extends io.dropwizard.core.Configuration>
- Type Parameters:
C1
- the type of the applications configuration class- Parameters:
consumerTokenProvider
- A provider for the header value of the Http header "Consumer-Token" that will be send with each client request configured withPlatformClientBuilder.enableConsumerToken()
. If no such provider is configured,PlatformClientBuilder.enableConsumerToken()
will fail.- Returns:
- a builder instance for further configuration
-
withOpenTelemetry
public JerseyClientBundle.FinalBuilder<C> withOpenTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry) Description copied from interface:JerseyClientBundle.FinalBuilder
Specifies a custom telemetry instance to use. If no instance is specified, theGlobalOpenTelemetry
is used.- Specified by:
withOpenTelemetry
in interfaceJerseyClientBundle.FinalBuilder<C extends io.dropwizard.core.Configuration>
- Parameters:
openTelemetry
- The telemetry instance to use- Returns:
- the same builder
-
build
- Specified by:
build
in interfaceJerseyClientBundle.FinalBuilder<C extends io.dropwizard.core.Configuration>
-