@param part the part to encode @return the ecoded string
(final String part)
| 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. |
no test coverage detected