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

Method URI

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

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

initMethod · 0.95
setSchemeMethod · 0.95
setAuthorityMethod · 0.95
setPathMethod · 0.95
setQueryMethod · 0.95
setFragmentMethod · 0.95
setSchemeSpecificPartMethod · 0.95
parseURIMethod · 0.95

Tested by

no test coverage detected