MCPcopy Index your code
hub / github.com/davidgiven/luje / setSchemeSpecificPart

Method setSchemeSpecificPart

lib/java/net/URI.java:1547–1562  ·  view source on GitHub ↗

Helper method used to re-calculate the scheme specific part of the resolved or normalized URIs

()

Source from the content-addressed store, hash-verified

1545 * resolved or normalized URIs
1546 */
1547 private void setSchemeSpecificPart() {
1548 // ssp = [//authority][path][?query]
1549 StringBuilder ssp = new StringBuilder();
1550 if (authority != null) {
1551 ssp.append("//" + authority); //$NON-NLS-1$
1552 }
1553 if (path != null) {
1554 ssp.append(path);
1555 }
1556 if (query != null) {
1557 ssp.append("?" + query); //$NON-NLS-1$
1558 }
1559 schemespecificpart = ssp.toString();
1560 // reset string, so that it can be re-calculated correctly when asked.
1561 string = null;
1562 }
1563
1564 /**
1565 * Creates a new URI instance by parsing the given string {@code relative}

Callers 3

normalizeMethod · 0.95
relativizeMethod · 0.95
resolveMethod · 0.95

Calls 2

appendMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected