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

Method getFragment

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

Returns the percent-decoded "fragment" component of this URI, or null if not present. NB: This method assumes the fragment was encoded as UTF-8, although RFC 3986 doesn't specify an encoding. Decoding errors are indicated by a '\u005CuFFFD' unicode replacement character in the output

()

Source from the content-addressed store, hash-verified

588 * uses a completely different method of escaping literal '/' characters.
589 */
590 @Nullable
591 public String getFragment() {
592 return percentDecodeAssumedUtf8(fragment);
593 }
594
595 /**
596 * Returns the fragment component of this URI in its original, possibly percent-encoded form, and

Callers 15

parse_allComponentsMethod · 0.95
parse_noAuthorityMethod · 0.95
parse_noQueryMethod · 0.95
parse_noFragmentMethod · 0.95
parse_rootlessMethod · 0.95
parse_emptyPathMethod · 0.95
parse_emptyFragmentMethod · 0.95
parse_decodingMethod · 0.95
parse_decodingPercentMethod · 0.95

Calls 1

Tested by 14

parse_allComponentsMethod · 0.76
parse_noAuthorityMethod · 0.76
parse_noQueryMethod · 0.76
parse_noFragmentMethod · 0.76
parse_rootlessMethod · 0.76
parse_emptyPathMethod · 0.76
parse_emptyFragmentMethod · 0.76
parse_decodingMethod · 0.76
parse_decodingPercentMethod · 0.76