Class ProxyProtocolConfig.Builder
java.lang.Object
io.helidon.webserver.ProxyProtocolConfig.BuilderBase<ProxyProtocolConfig.Builder, ProxyProtocolConfig>
io.helidon.webserver.ProxyProtocolConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ProxyProtocolConfig.Builder, ProxyProtocolConfig>, Builder<ProxyProtocolConfig.Builder, ProxyProtocolConfig>, ConfigBuilderSupport.ConfiguredBuilder<ProxyProtocolConfig.Builder, ProxyProtocolConfig>, Supplier<ProxyProtocolConfig>
- Enclosing interface:
ProxyProtocolConfig
public static class ProxyProtocolConfig.Builder
extends ProxyProtocolConfig.BuilderBase<ProxyProtocolConfig.Builder, ProxyProtocolConfig>
implements Builder<ProxyProtocolConfig.Builder, ProxyProtocolConfig>
Fluent API builder for
ProxyProtocolConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class ProxyProtocolConfig.BuilderBase
ProxyProtocolConfig.BuilderBase.ProxyProtocolConfigImplModifier 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 ProxyProtocolConfig.BuilderBase
clearTrustedProxies, config, config, enabled, enabled, from, from, preBuildPrototype, toString, trustedProxies, trustedProxies, trustedProxies, trustedProxies, trustedProxies, validatePrototypeModifier and TypeMethodDescriptionClear existing value of trustedProxies.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether PROXY protocol support is enabled.enabled(boolean enabled) Whether PROXY protocol support is enabled.from(ProxyProtocolConfig prototype) Update this builder from an existing prototype instance.from(ProxyProtocolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()Trusted proxy allow list; required when PROXY protocol support is enabled.trustedProxies(AllowList trustedProxies) Trusted proxy allow list; required when PROXY protocol support is enabled.trustedProxies(AllowListConfig trustedProxies) Trusted proxy allow list; required when PROXY protocol support is enabled.trustedProxies(Consumer<AllowListConfig.Builder> consumer) Trusted proxy allow list; required when PROXY protocol support is enabled.trustedProxies(Supplier<? extends AllowList> supplier) Trusted proxy allow list; required when PROXY protocol support is enabled.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 ProxyProtocolConfigget()default ProxyProtocolConfig.Builderidentity()Instance of this builder as the correct type.default ProxyProtocolConfig.Builderupdate(Consumer<ProxyProtocolConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ProxyProtocolConfig.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<ProxyProtocolConfig.Builder, ProxyProtocolConfig>- 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<ProxyProtocolConfig.Builder, ProxyProtocolConfig>- Returns:
- instance of the built type
-