public static interface JerseyClientBundle.InitialBuilder<C extends io.dropwizard.Configuration> extends JerseyClientBundle.FinalBuilder<C>
Modifier and Type | Method and Description |
---|---|
<C1 extends io.dropwizard.Configuration> |
withConsumerTokenProvider(JerseyClientBundle.ConsumerTokenProvider<C1> consumerTokenProvider) |
build, withTracer
<C1 extends io.dropwizard.Configuration> JerseyClientBundle.FinalBuilder<C1> withConsumerTokenProvider(JerseyClientBundle.ConsumerTokenProvider<C1> consumerTokenProvider)
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.