Constructor to create a new URI object. The userInfo, path, query and fragment should be unencoded values - they will be encoded as required. @param scheme the scheme of the URI (for URLs, this would be the protocol), or null for relative URIs. @param userInfo the unencoded userinfo segment (ie. us
(String scheme, String userInfo, String host, int port, String path, String query, String fragment)
| 181 | * @throws URISyntaxException if any of the fragments are invalid. |
| 182 | */ |
| 183 | public URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) |
| 184 | throws URISyntaxException { |
| 185 | init(); |
| 186 | setScheme(scheme); |
| 187 | setAuthority(host, port, userInfo, true); |
| 188 | setPath(path, true); |
| 189 | setQuery(query, true); |
| 190 | setFragment(fragment, true); |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Constructor to create a new URI object. The authority, path, query and |
nothing calls this directly
no test coverage detected