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

Method appendAuthority

api/src/main/java/io/grpc/Uri.java:384–394  ·  view source on GitHub ↗
(StringBuilder sb)

Source from the content-addressed store, hash-verified

382 }
383
384 private void appendAuthority(StringBuilder sb) {
385 if (userInfo != null) {
386 sb.append(userInfo).append('@');
387 }
388 if (host != null) {
389 sb.append(host);
390 }
391 if (port != null) {
392 sb.append(':').append(port);
393 }
394 }
395
396 /**
397 * Returns the percent-decoded "User Information" component of this URI, or null if not present.

Callers 2

getRawAuthorityMethod · 0.95
toStringMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected