Class SniConfig.BuilderBase.SniConfigImpl

java.lang.Object
io.helidon.webclient.api.SniConfig.BuilderBase.SniConfigImpl
All Implemented Interfaces:
Prototype.Api, SniConfig
Enclosing class:
SniConfig.BuilderBase<BUILDER extends SniConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SniConfig>

protected static class SniConfig.BuilderBase.SniConfigImpl extends Object implements SniConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • SniConfigImpl

      protected SniConfigImpl(SniConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • mode

      public SniMode mode()
      Description copied from interface: SniConfig
      TLS peer host source mode for SNI and endpoint identification: uri-host, host-header, explicit, or disabled.

      DNS names are sent as SNI server names. IP literals are used for endpoint identification without a DNS SNI server name. disabled clears the SNI server name without disabling endpoint identification.

      Specified by:
      mode in interface SniConfig
      Returns:
      SNI mode
    • host

      public Optional<String> host()
      Description copied from interface: SniConfig
      Explicit TLS peer host used when mode is explicit. 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 mode is explicit, and it must not include a port. Bracketed IPv6 literals are accepted and normalized to the host value without brackets.

      Specified by:
      host in interface SniConfig
      Returns:
      explicit TLS peer host
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object