MCPcopy Create free account
hub / github.com/EsperoTech/yaade / getQueryString

Method getQueryString

server/src/main/java/com/postman/collection/Url.java:486–498  ·  view source on GitHub ↗

Get the raw query string for this URL. @return

()

Source from the content-addressed store, hash-verified

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.

Callers 1

updateRawMethod · 0.95

Calls 3

lengthMethod · 0.80
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected