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

Method setRawScheme

api/src/main/java/io/grpc/Uri.java:716–729  ·  view source on GitHub ↗
(String scheme)

Source from the content-addressed store, hash-verified

714 }
715
716 @CanIgnoreReturnValue
717 Builder setRawScheme(String scheme) {
718 if (scheme.isEmpty() || !alphaChars.get(scheme.charAt(0))) {
719 throw new IllegalArgumentException("Scheme must start with an alphabetic char");
720 }
721 for (int i = 0; i < scheme.length(); i++) {
722 char c = scheme.charAt(i);
723 if (!schemeChars.get(c)) {
724 throw new IllegalArgumentException("Invalid character in scheme at index " + i);
725 }
726 }
727 this.scheme = scheme;
728 return this;
729 }
730
731 /**
732 * Specifies the new URI's path component as a string of zero or more '/' delimited segments.

Callers 2

createMethod · 0.95
setSchemeMethod · 0.95

Calls 2

getMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected