Class AltSvcConfig.Builder

All Implemented Interfaces:
Prototype.Builder<AltSvcConfig.Builder, AltSvcConfig>, Builder<AltSvcConfig.Builder, AltSvc>, ConfigBuilderSupport.ConfiguredBuilder<AltSvcConfig.Builder, AltSvcConfig>, Supplier<AltSvc>
Enclosing interface:
AltSvcConfig

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

    • buildPrototype

      public AltSvcConfig 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<AltSvcConfig.Builder, AltSvcConfig>
      Returns:
      an instance of the setup object created from this builder
    • build

      public AltSvc 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<AltSvcConfig.Builder, AltSvc>
      Returns:
      instance of the built type