Interface ConsumerTokenBundle.OptionsBuilder

All Known Implementing Classes:
ConsumerTokenBundle.Builder
Enclosing class:
ConsumerTokenBundle<C extends io.dropwizard.core.Configuration>

public static interface ConsumerTokenBundle.OptionsBuilder
  • 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 the ConsumerTokenConfig from the applications Configuration.
      Returns:
      a builder to create the bundle