MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / encodeQueryPart

Method encodeQueryPart

src/main/java/org/htmlunit/util/UrlUtils.java:1351–1357  ·  view source on GitHub ↗

@param part the part to encode @return the ecoded string

(final String part)

Source from the content-addressed store, hash-verified

1349 * @return the ecoded string
1350 */
1351 public static String encodeQueryPart(final String part) {
1352 if (part == null || part.isEmpty()) {
1353 return "";
1354 }
1355
1356 return URLEncoder.encode(part, UTF_8);
1357 }
1358
1359 /**
1360 * Removes the well known ports if it can be deduced from protocol.

Callers 2

jsToStringMethod · 0.95
setSearchMethod · 0.95

Calls 2

isEmptyMethod · 0.65
encodeMethod · 0.45

Tested by

no test coverage detected