String () { StringBuilder url = new StringBuilder(); if (sortBy != null) { url.append(sortBy.getMpParameter()); } if (staffPicks) { if (!url.isEmpty()) { url.append("&"); } url.append("is_featured_search=true"); } for (String tag : tags) { if (!url.isEmpty()) { url.append("&"); } url.append("tags=").append(URLUtil.encodeURIComponent(tag)); } for (String vendor : vendors) { if (!url.isEmpty()) { url.append("&"); } url.append("organization=").append(URLUtil.encodeURIComponent(vendor)); } if (searchQuery != null) { if (!url.isEmpty()) { url.append("&"); } url.append("search=").append(URLUtil.encodeURIComponent(searchQuery)); } return url.toString(); }