Class AltSvcHeader.Alternative

java.lang.Object
io.helidon.webclient.api.AltSvcHeader.Alternative
Enclosing class:
AltSvcHeader

public static final class AltSvcHeader.Alternative extends Object
One parsed alternative service.
  • Method Details

    • protocolId

      public String protocolId()
      Percent-decoded ALPN protocol identifier, mapped one octet to each ISO-8859-1 character.
      Returns:
      protocol identifier
    • host

      public Optional<String> host()
      Alternative host without IPv6 brackets, or empty to retain the origin host.
      Returns:
      optional alternative host
    • port

      public int port()
      Alternative port.
      Returns:
      alternative port
    • expirationTime

      public Instant expirationTime()
      Time at which this alternative expires after accounting for response age.
      Returns:
      expiration time
    • persist

      public boolean persist()
      Whether this alternative can persist across network changes.
      Returns:
      whether the alternative is persistent