Class ClientAltSvcConfig.BuilderBase.ClientAltSvcConfigImpl

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

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

    • ClientAltSvcConfigImpl

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

    • enabled

      public boolean enabled()
      Description copied from interface: ClientAltSvcConfig
      Whether alternative service handling is enabled.

      This option defaults to true. Setting it to false disables alternative service handling even when this configuration is present.

      Specified by:
      enabled in interface ClientAltSvcConfig
      Returns:
      whether alternative service handling is enabled
    • protocols

      public Set<String> protocols()
      Description copied from interface: ClientAltSvcConfig
      Allowed alternative service protocol identifiers.

      An empty set permits every available client protocol that supports alternative services. A non-empty set is an exact, case-sensitive allow-list of opaque ALPN protocol identifiers; it is not validated against the protocols currently provided by the client. Each Java character in the range U+0000 through U+00FF maps one-to-one to an identifier byte. Each identifier must contain between 1 and 255 bytes, inclusive, when this policy is enabled.

      Specified by:
      protocols in interface ClientAltSvcConfig
      Returns:
      allowed alternative service protocol identifiers
    • 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