Class CorsConfig.Builder

All Implemented Interfaces:
Prototype.Builder<CorsConfig.Builder, CorsConfig>, Builder<CorsConfig.Builder, CorsFeature>, ConfigBuilderSupport.ConfiguredBuilder<CorsConfig.Builder, CorsConfig>, Supplier<CorsFeature>
Enclosing interface:
CorsConfig

public static class CorsConfig.Builder extends CorsConfig.BuilderBase<CorsConfig.Builder, CorsConfig> implements Builder<CorsConfig.Builder, CorsFeature>
Fluent API builder for CorsFeature.
  • Method Details

    • buildPrototype

      public CorsConfig buildPrototype()
      Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      buildPrototype in interface Prototype.Builder<CorsConfig.Builder, CorsConfig>
      Returns:
      an instance of the setup object created from this builder
    • build

      public CorsFeature build()
      Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      build in interface Builder<CorsConfig.Builder, CorsFeature>
      Returns:
      instance of the built type