Class DbServerEndpointUtil
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.internal.DbServerEndpointUtil
Utilities for validating textual database server endpoints.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisIpv6Literal(String host) Returns whetherhostis an IPv6 literal accepted as a database server endpoint.
-
Method Details
-
isIpv6Literal
Returns whetherhostis an IPv6 literal accepted as a database server endpoint.The value is validated as text and is never resolved as a host name.
A scoped literal is rejected when its
%separator and the first two characters of its zone ID together form the percent-encoding of a URI delimiter, a backslash, or a percent sign.
-