Set the raw-escaped query. @param escapedQuery the raw-escaped query @throws URIException escaped query not valid
(char[] escapedQuery)
| 3255 | * @throws URIException escaped query not valid |
| 3256 | */ |
| 3257 | public void setRawQuery(char[] escapedQuery) throws URIException { |
| 3258 | if (escapedQuery == null || escapedQuery.length == 0) { |
| 3259 | _query = escapedQuery; |
| 3260 | setURI(); |
| 3261 | return; |
| 3262 | } |
| 3263 | // remove the fragment identifier |
| 3264 | escapedQuery = removeFragmentIdentifier(escapedQuery); |
| 3265 | if (!validate(escapedQuery, query)) { |
| 3266 | throw new URIException(URIException.ESCAPING, |
| 3267 | "escaped query not valid"); |
| 3268 | } |
| 3269 | _query = escapedQuery; |
| 3270 | setURI(); |
| 3271 | } |
| 3272 | |
| 3273 | |
| 3274 | /** |
no test coverage detected