Class SniConfig.BuilderBase<BUILDER extends SniConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SniConfig>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
SniConfig.Builder
- Enclosing interface:
SniConfig
SniConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of host.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Update this builder from an existing prototype instance.from(SniConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.host()Explicit TLS peer host used whenmodeisexplicit.Explicit TLS peer host used whenmodeisexplicit.mode()TLS peer host source mode for SNI and endpoint identification:uri-host,host-header,explicit, ordisabled.TLS peer host source mode for SNI and endpoint identification:uri-host,host-header,explicit, ordisabled.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends SniConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SniConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
mode
TLS peer host source mode for SNI and endpoint identification:uri-host,host-header,explicit, ordisabled.DNS names are sent as SNI server names. IP literals are used for endpoint identification without a DNS SNI server name.
disabledclears the SNI server name without disabling endpoint identification.- Parameters:
mode- SNI mode- Returns:
- updated builder instance
- See Also:
-
clearHost
Clear existing value of host.- Returns:
- updated builder instance
- See Also:
-
host
Explicit TLS peer host used whenmodeisexplicit. DNS hosts are sent as SNI server names and used for endpoint identification. IP literals are used for endpoint identification without a DNS SNI server name.The host must be configured only when
modeisexplicit, and it must not include a port. Bracketed IPv6 literals are accepted and normalized to the host value without brackets.- Parameters:
host- explicit TLS peer host- Returns:
- updated builder instance
- See Also:
-
mode
TLS peer host source mode for SNI and endpoint identification:uri-host,host-header,explicit, ordisabled.DNS names are sent as SNI server names. IP literals are used for endpoint identification without a DNS SNI server name.
disabledclears the SNI server name without disabling endpoint identification.- Returns:
- SNI mode
-
host
Explicit TLS peer host used whenmodeisexplicit. DNS hosts are sent as SNI server names and used for endpoint identification. IP literals are used for endpoint identification without a DNS SNI server name.The host must be configured only when
modeisexplicit, and it must not include a port. Bracketed IPv6 literals are accepted and normalized to the host value without brackets.- Returns:
- explicit TLS peer host
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-