Lines Matching refs:query

108     <scheme>://<authority><path>?<query>
275 * Gets the decoded query component from this URI. The query comes after
276 * the query separator ('?') and before the fragment separator ('#'). This
280 * @return the decoded query or null if there isn't one
285 * Gets the encoded query component from this URI. The query comes after
286 * the query separator ('?') and before the fragment separator ('#'). This
290 * @return the encoded query or null if there isn't one
395 // the data we include -- only the ssp, not the query params or
638 private Part query;
641 return query == null
642 ? query = Part.fromEncoded(parseQuery()) : query;
716 // Look for the start of the path, query, or fragment, or the
722 case '?': // Start of query
756 case '?': // Start of query
773 case '?': // Start of query
789 .query(getQueryPart())
1146 private final Part query;
1150 Part query, Part fragment) {
1154 this.query = Part.nonNull(query);
1177 query.writeTo(parcel);
1229 if (!query.isEmpty()) {
1230 builder.append('?').append(query.getEncoded());
1251 return this.query.getDecoded();
1255 return this.query.getEncoded();
1301 .query(query)
1311 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1314 * of two patterns: {@code <relative or absolute path>?<query>#<fragment>}
1315 * or {@code //<authority><absolute path>?<query>#<fragment>}
1328 private Part query;
1436 Builder query(Part query) {
1440 this.query = query;
1445 * Encodes and sets the query.
1447 public Builder query(String query) {
1448 return query(Part.fromDecoded(query));
1452 * Sets the previously encoded query.
1454 public Builder encodedQuery(String query) {
1455 return query(Part.fromEncoded(query));
1479 * query string.
1491 if (query == null) {
1492 query = Part.fromEncoded(encodedParameter);
1496 String oldQuery = query.getEncoded();
1498 query = Part.fromEncoded(encodedParameter);
1500 query = Part.fromEncoded(oldQuery + "&" + encodedParameter);
1507 * Clears the the previously set query.
1510 return query((Part) null);
1541 scheme, authority, path, query, fragment);
1558 * Returns a set of the unique names of all query parameters. Iterating
1570 String query = getEncodedQuery();
1571 if (query == null) {
1578 int next = query.indexOf('&', start);
1579 int end = (next == -1) ? query.length() : next;
1581 int separator = query.indexOf('=', start);
1586 String name = query.substring(start, separator);
1591 } while (start < query.length());
1597 * Searches the query string for parameter values with the given key.
1613 String query = getEncodedQuery();
1614 if (query == null) {
1629 int nextAmpersand = query.indexOf('&', start);
1630 int end = nextAmpersand != -1 ? nextAmpersand : query.length();
1632 int separator = query.indexOf('=', start);
1638 && query.regionMatches(start, encodedKey, 0, encodedKey.length())) {
1642 values.add(decode(query.substring(separator + 1, end)));
1658 * Searches the query string for the first value with the given key.
1676 final String query = getEncodedQuery();
1677 if (query == null) {
1682 final int length = query.length();
1685 int nextAmpersand = query.indexOf('&', start);
1688 int separator = query.indexOf('=', start);
1694 && query.regionMatches(start, encodedKey, 0, encodedKey.length())) {
1698 String encodedValue = query.substring(separator + 1, end);
1714 * Searches the query string for the first value with the given key and interprets it
1719 * @param defaultValue the default value to return if there is no query parameter for key
1720 * @return the boolean interpretation of the query parameter key