Helper method used to re-calculate the scheme specific part of the resolved or normalized URIs
()
| 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} |
no test coverage detected