MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / isSocketScheme

Method isSocketScheme

vm/JavaAPI/src/java/net/URI.java:574–581  ·  view source on GitHub ↗

Internal utility method to determine if the given scheme should use semicolons (;) for query separator instead of ampersand (&)

(String scheme)

Source from the content-addressed store, hash-verified

572 * semicolons (;) for query separator instead of ampersand (&)
573 */
574 boolean isSocketScheme(String scheme) {
575 for (String p : URIHelper.SOCKET_SCHEMES) {
576 if (p.equals(scheme)) {
577 return true;
578 }
579 }
580 return false;
581 }
582
583 /**
584 * Verifies the scheme contains only valid characters as per the URN

Callers 1

setSchemeMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected