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
390 // the data we include -- only the ssp, not the query params or
633 private Part query;
636 return query == null
637 ? query = Part.fromEncoded(parseQuery()) : query;
711 // Look for the start of the path, query, or fragment, or the
717 case '?': // Start of query
751 case '?': // Start of query
768 case '?': // Start of query
784 .query(getQueryPart())
1141 private final Part query;
1145 Part query, Part fragment) {
1149 this.query = Part.nonNull(query);
1172 query.writeTo(parcel);
1224 if (!query.isEmpty()) {
1225 builder.append('?').append(query.getEncoded());
1246 return this.query.getDecoded();
1250 return this.query.getEncoded();
1296 .query(query)
1306 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1309 * of two patterns: {@code <relative or absolute path>?<query>#<fragment>}
1310 * or {@code //<authority><absolute path>?<query>#<fragment>}
1323 private Part query;
1431 Builder query(Part query) {
1435 this.query = query;
1440 * Encodes and sets the query.
1442 public Builder query(String query) {
1443 return query(Part.fromDecoded(query));
1447 * Sets the previously encoded query.
1449 public Builder encodedQuery(String query) {
1450 return query(Part.fromEncoded(query));
1474 * query string.
1486 if (query == null) {
1487 query = Part.fromEncoded(encodedParameter);
1491 String oldQuery = query.getEncoded();
1493 query = Part.fromEncoded(encodedParameter);
1495 query = Part.fromEncoded(oldQuery + "&" + encodedParameter);
1502 * Clears the the previously set query.
1505 return query((Part) null);
1536 scheme, authority, path, query, fragment);
1553 * Returns a set of the unique names of all query parameters. Iterating
1565 String query = getEncodedQuery();
1566 if (query == null) {
1573 int next = query.indexOf('&', start);
1574 int end = (next == -1) ? query.length() : next;
1576 int separator = query.indexOf('=', start);
1581 String name = query.substring(start, separator);
1586 } while (start < query.length());
1592 * Searches the query string for parameter values with the given key.
1608 String query = getEncodedQuery();
1609 if (query == null) {
1624 int nextAmpersand = query.indexOf('&', start);
1625 int end = nextAmpersand != -1 ? nextAmpersand : query.length();
1627 int separator = query.indexOf('=', start);
1633 && query.regionMatches(start, encodedKey, 0, encodedKey.length())) {
1637 values.add(decode(query.substring(separator + 1, end)));
1653 * Searches the query string for the first value with the given key.
1671 final String query = getEncodedQuery();
1672 if (query == null) {
1677 final int length = query.length();
1680 int nextAmpersand = query.indexOf('&', start);
1683 int separator = query.indexOf('=', start);
1689 && query.regionMatches(start, encodedKey, 0, encodedKey.length())) {
1693 String encodedValue = query.substring(separator + 1, end);
1709 * Searches the query string for the first value with the given key and interprets it
1714 * @param defaultValue the default value to return if there is no query parameter for key
1715 * @return the boolean interpretation of the query parameter key