public static class JerseyClientBundle.Builder<C extends io.dropwizard.Configuration> extends java.lang.Object implements JerseyClientBundle.InitialBuilder<C>, JerseyClientBundle.FinalBuilder<C>
Modifier and Type | Method and Description |
---|---|
JerseyClientBundle<C> |
build() |
<C1 extends io.dropwizard.Configuration> |
withConsumerTokenProvider(JerseyClientBundle.ConsumerTokenProvider<C1> consumerTokenProvider) |
JerseyClientBundle.FinalBuilder<C> |
withTracer(io.opentracing.Tracer tracer) |
public <C1 extends io.dropwizard.Configuration> JerseyClientBundle.FinalBuilder<C1> withConsumerTokenProvider(JerseyClientBundle.ConsumerTokenProvider<C1> consumerTokenProvider)
withConsumerTokenProvider
in interface JerseyClientBundle.InitialBuilder<C extends io.dropwizard.Configuration>
C1
- the type of the applications configuration classconsumerTokenProvider
- A provider for the header value of the Http header "Consumer-Token" that will be send with
each client request configured with PlatformClientBuilder.enableConsumerToken()
.
If no such provider is configured, PlatformClientBuilder.enableConsumerToken()
will fail.public JerseyClientBundle.FinalBuilder<C> withTracer(io.opentracing.Tracer tracer)
withTracer
in interface JerseyClientBundle.FinalBuilder<C extends io.dropwizard.Configuration>
tracer
- A custom tracer. If no tracer is provided, the GlobalTracer
is usedpublic JerseyClientBundle<C> build()
build
in interface JerseyClientBundle.FinalBuilder<C extends io.dropwizard.Configuration>