MCPcopy Create free account
hub / github.com/grpc/grpc-java / isPathAbsolute

Method isPathAbsolute

api/src/main/java/io/grpc/Uri.java:538–540  ·  view source on GitHub ↗

Returns true iff this URI's path component starts with the '/' segment delimiter (rather than a path segment). The path of an RFC 3986 URI is either empty, absolute (starts with the '/' segment delimiter) or rootless (starts with a path segment). For example, file:///resume.txt , <c

()

Source from the content-addressed store, hash-verified

536 * #isAbsolute()} which tests the URI itself for a different property.
537 */
538 public boolean isPathAbsolute() {
539 return path.startsWith("/");
540 }
541
542 /**
543 * Returns the path component of this URI in its originally parsed, possibly percent-encoded form.

Calls

no outgoing calls