Interface ConsumerTokenBundle.OptionsBuilder
-
- All Known Implementing Classes:
ConsumerTokenBundle.Builder
- Enclosing class:
- ConsumerTokenBundle<C extends io.dropwizard.Configuration>
public static interface ConsumerTokenBundle.OptionsBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends io.dropwizard.Configuration>
ConsumerTokenBundle.FinalBuilder<C>withConfigProvider(ConsumerTokenBundle.ConsumerTokenConfigProvider<C> configProvider)
ConsumerTokenBundle.FinalBuilder<io.dropwizard.Configuration>
withOptionalConsumerToken()
Creates the bundle with the consumer token being optional.ConsumerTokenBundle.ExcludeBuilder<io.dropwizard.Configuration>
withRequiredConsumerToken()
Creates the bundle with a consumer token required for every request.
-
-
-
Method Detail
-
withOptionalConsumerToken
ConsumerTokenBundle.FinalBuilder<io.dropwizard.Configuration> withOptionalConsumerToken()
Creates the bundle with the consumer token being optional.- Returns:
- a builder to create the bundle
-
withRequiredConsumerToken
ConsumerTokenBundle.ExcludeBuilder<io.dropwizard.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.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
-
-