Get the raw query string for this URL. @return
()
| 484 | * @return |
| 485 | */ |
| 486 | public String getQueryString() { |
| 487 | if (query == null) { |
| 488 | return null; |
| 489 | } |
| 490 | String queryString = ""; |
| 491 | String curQueryElement; |
| 492 | for (Property curVar : query) { |
| 493 | curQueryElement = curVar.getKey() + "" + "=" + curVar.getValue() + ""; |
| 494 | queryString = queryString + (queryString.length() > 0 ? "&" : "") + curQueryElement; |
| 495 | } |
| 496 | |
| 497 | return queryString; |
| 498 | } |
| 499 | |
| 500 | /** |
| 501 | * Remove a query element key-value pair from the array of query elements, if it exists. |