Set the query. When a query string is not misunderstood the reserved special characters ("&", "=", "+", ",", and "$") within a query component, it is recommended to use in encoding the whole query with this method. The additional APIs for the special purpose using by the reserved special
(String query)
| 3305 | * @see #encode |
| 3306 | */ |
| 3307 | public void setQuery(String query) throws URIException { |
| 3308 | if (query == null || query.length() == 0) { |
| 3309 | _query = (query == null) ? null : query.toCharArray(); |
| 3310 | setURI(); |
| 3311 | return; |
| 3312 | } |
| 3313 | setRawQuery(encode(query, allowed_query, getProtocolCharset())); |
| 3314 | } |
| 3315 | |
| 3316 | |
| 3317 | /** |
no test coverage detected