Class UrlParsingUtils.HostPort

java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.parser.UrlParsingUtils.HostPort
Enclosing class:
UrlParsingUtils

public static final class UrlParsingUtils.HostPort extends Object
Result of parsing a server string into host and port components.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Details

    • host

      public String host()
      The host, with IPv6 addresses bracketed.
    • port

      @Nullable public Integer port()
      The port, or null if not specified.
    • ipv6Address

      @Nullable public String ipv6Address()
      The raw IPv6 address match (without brackets), or null if not IPv6.