Class AltSvcConfig.Builder
java.lang.Object
io.helidon.webserver.http.AltSvcConfig.BuilderBase<AltSvcConfig.Builder, AltSvcConfig>
io.helidon.webserver.http.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.-
Nested Class Summary
Nested classes/interfaces inherited from class AltSvcConfig.BuilderBase
AltSvcConfig.BuilderBase.AltSvcConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class AltSvcConfig.BuilderBase
clearMaxAge, clearPort, config, config, enabled, enabled, from, from, maxAge, maxAge, persist, persist, port, port, preBuildPrototype, protocol, protocol, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of maxAge.Clear existing value of port.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether the alternative service should be advertised.enabled(boolean enabled) Whether the alternative service should be advertised.from(AltSvcConfig prototype) Update this builder from an existing prototype instance.from(AltSvcConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.maxAge()Advertised maximum age.Advertised maximum age.booleanpersist()Whether to emit thepersist=1parameter.persist(boolean persist) Whether to emit thepersist=1parameter.port()Advertised port.port(int port) Advertised port.protected voidHandles providers and decorators.protocol()Advertised protocol name.Advertised protocol name.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault AltSvcget()default AltSvcConfig.Builderidentity()Instance of this builder as the correct type.default AltSvcConfig.Builderupdate(Consumer<AltSvcConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault AltSvcConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
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:
buildPrototypein interfacePrototype.Builder<AltSvcConfig.Builder, AltSvcConfig>- Returns:
- an instance of the setup object created from this builder
-
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:
buildin interfaceBuilder<AltSvcConfig.Builder, AltSvc>- Returns:
- instance of the built type
-