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

Method parse

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

Parses a URI from its string form. @throws URISyntaxException if 's' is not a valid RFC 3986 URI.

(String s)

Source from the content-addressed store, hash-verified

197 * @throws URISyntaxException if 's' is not a valid RFC 3986 URI.
198 */
199 public static Uri parse(String s) throws URISyntaxException {
200 try {
201 return create(s);
202 } catch (IllegalArgumentException e) {
203 throw new URISyntaxException(s, e.getMessage());
204 }
205 }
206
207 /**
208 * Creates a URI from a string assumed to be valid.

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

Calls 1

createMethod · 0.95

Tested by 15

parse_allComponentsMethod · 0.76
parse_noAuthorityMethod · 0.76
parse_noQueryMethod · 0.76
parse_noFragmentMethod · 0.76
parse_rootlessMethod · 0.76
parse_emptyPathMethod · 0.76