Encodes and escapes the specified URI hash string. @param query the query string to encode and escape @return the encoded and escaped hash string
(final String query)
| 330 | * @return the encoded and escaped hash string |
| 331 | */ |
| 332 | public static String encodeQuery(final String query) { |
| 333 | if (query == null) { |
| 334 | return null; |
| 335 | } |
| 336 | return encode(query, QUERY_ALLOWED_CHARS, UTF_8); |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Unescapes and decodes the specified string. |