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

Method setPath

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

Specifies the new URI's path component as a string of zero or more '/' delimited segments. Path segments can consist of any string of codepoints. Codepoints that can't be encoded literally will be percent-encoded for you. If a URI contains an authority component, then the path component must

(String path)

Source from the content-addressed store, hash-verified

750 * @return this, for fluent building
751 */
752 @CanIgnoreReturnValue
753 public Builder setPath(String path) {
754 checkArgument(path != null, "Path can be empty but not null");
755 this.path = percentEncode(path, pCharsAndSlash);
756 return this;
757 }
758
759 /**
760 * Specifies the new URI's path component as a string of zero or more '/' delimited segments.

Callers 15

validAuthorityTargetMethod · 0.80
validUriTargetMethod · 0.80
validIpv4UriTargetMethod · 0.80
validIpv6UriTargetMethod · 0.80
parseRequestSuccessMethod · 0.80
parseRequestMethod · 0.80

Calls 1

percentEncodeMethod · 0.80