Lines Matching refs:key
1470 * Encodes the key and value and then appends the parameter to the
1473 * @param key which will be encoded
1476 public Builder appendQueryParameter(String key, String value) {
1480 String encodedParameter = encode(key, null) + "="
1589 * Searches the query string for parameter values with the given key.
1591 * @param key which will be encoded
1594 * @throws NullPointerException if key is null
1597 public List<String> getQueryParameters(String key) {
1601 if (key == null) {
1602 throw new NullPointerException("key");
1612 encodedKey = URLEncoder.encode(key, DEFAULT_ENCODING);
1650 * Searches the query string for the first value with the given key.
1655 * @param key which will be encoded
1657 * @throws NullPointerException if key is null
1660 public String getQueryParameter(String key) {
1664 if (key == null) {
1665 throw new NullPointerException("key");
1673 final String encodedKey = encode(key, null);
1706 * Searches the query string for the first value with the given key and interprets it
1710 * @param key which will be decoded
1711 * @param defaultValue the default value to return if there is no query parameter for key
1712 * @return the boolean interpretation of the query parameter key
1714 public boolean getBooleanQueryParameter(String key, boolean defaultValue) {
1715 String flag = getQueryParameter(key);