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

Method setRawFragment

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

Specifies the fragment component of the new URI, already percent-encoded, exactly as it will appear after the '#' delimiter in the string form of the built URI. NB: Choose carefully between this method and #setFragment(String). fragment must only contain codepoints from RFC 3986'

(@Nullable String fragment)

Source from the content-addressed store, hash-verified

856 * @throws IllegalArgumentException if 'fragment' contains forbidden characters
857 */
858 @CanIgnoreReturnValue
859 public Builder setRawFragment(@Nullable String fragment) {
860 if (fragment != null) {
861 checkPercentEncodedArg(fragment, "fragment", fragmentChars);
862 }
863 this.fragment = fragment;
864 return this;
865 }
866
867 /**
868 * Set the "user info" component of the new URI, e.g. "username:password", not including the

Calls 1