Interface ConsumerTokenBundle.OptionsBuilder
- All Known Implementing Classes:
ConsumerTokenBundle.Builder
- Enclosing class:
- ConsumerTokenBundle<C extends io.dropwizard.core.Configuration>
public static interface ConsumerTokenBundle.OptionsBuilder
-
Method Summary
Modifier and TypeMethodDescription<C extends io.dropwizard.core.Configuration>
ConsumerTokenBundle.FinalBuilder<C>withConfigProvider
(ConsumerTokenBundle.ConsumerTokenConfigProvider<C> configProvider) ConsumerTokenBundle.FinalBuilder<io.dropwizard.core.Configuration>
Creates the bundle with the consumer token being optional.ConsumerTokenBundle.ExcludeBuilder<io.dropwizard.core.Configuration>
Creates the bundle with a consumer token required for every request.
-
Method Details
-
withOptionalConsumerToken
ConsumerTokenBundle.FinalBuilder<io.dropwizard.core.Configuration> withOptionalConsumerToken()Creates the bundle with the consumer token being optional.- Returns:
- a builder to create the bundle
-
withRequiredConsumerToken
ConsumerTokenBundle.ExcludeBuilder<io.dropwizard.core.Configuration> withRequiredConsumerToken()Creates the bundle with a consumer token required for every request.- Returns:
- a builder to create the bundle
-
withConfigProvider
<C extends io.dropwizard.core.Configuration> ConsumerTokenBundle.FinalBuilder<C> withConfigProvider(ConsumerTokenBundle.ConsumerTokenConfigProvider<C> configProvider) - Type Parameters:
C
- the applications configuration type- Parameters:
configProvider
- the method returning theConsumerTokenConfig
from the applicationsConfiguration
.- Returns:
- a builder to create the bundle
-