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

Method isPathRootless

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

Returns true iff this URI's path component starts with a path segment (rather than the '/' segment delimiter). 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, tel:+1-206-555-1212 , <

()

Source from the content-addressed store, hash-verified

515 * <p>Contrast rootless paths with absolute ones (see {@link #isPathAbsolute()}.
516 */
517 public boolean isPathRootless() {
518 return !path.isEmpty() && !path.startsWith("/");
519 }
520
521 /**
522 * Returns true iff this URI's path component starts with the '/' segment delimiter (rather than a

Calls 1

isEmptyMethod · 0.45