Returns a pair of strings created from a string name and a URI
value.

@param name The string name.
@param value The URI value.
@return A pair of strings.
160578
public static Pair<String, String> pair(final String name, final URI value)
        {
        return pair(name, value.toASCIIString());
        }
900928
public static String[] getStringArray(String name){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getStringArray(name);
        }
        return null;
    }
445214
public static List<String> get(String name, @Nullable Boolean value) {
    if (Boolean.TRUE.equals(value)) {
      return Collections.singletonList("--" + name);
    }
    return Collections.emptyList();
  }
1260453
static List<String> stringsWithEq(String name, @Nullable List<String> values) {
    List<String> result = new ArrayList<>();
    if (values != null) {
      for (String value : values) {
        result.addAll(stringWithEq(name, value));
      }
    }
    return result;
  }
739172
public static List<String> get(String name, @Nullable Boolean value) {
    if (value == null) {
      return Collections.emptyList();
    }
    return Arrays.asList("--" + name + "=" + value.toString());
  }
936338
public OkRequest<T> form(final String name, final String value) {
        return form(name, value, CHARSET_UTF8);
    }
1120950
protected static function splitCompoundStringIntoParts($name, $value)
    {
        if (strpos($name, '=') !== false) {
            list($name, $value) = array_map('trim', explode('=', $name, 2));
        }

        return array($name, $value);
    }
189976
public String getString(String name) {

		Object value = get(name);
		if (value instanceof String ||
			value instanceof Boolean ||
			value instanceof Integer) {
			return value.toString();
		}

		if (value instanceof String[]) {
			String[] list = getStrings(name);
			return StringUtils.join(list, ",");
		}

		return get(name).toString();
	}
866726
public static List<String> get(String name, @Nullable List<String> values) {
    return Args.stringsWithEq(name, values);
  }
702676
public static String getUriPath(String value) {
        try {
            URL url = new URL(value);
            return url.getPath();
        } catch (MalformedURLException e) {
            return value;
        }
    }
802507
public ToStringHelper add(String name, Object value) {
    checkNotNull(name);
    addHolder(value).builder.append(name).append('=').append(value);
    return this;
  }
917380
public List<String> getValuesList(String name) {
        final List<String> list = new ArrayList<>();
        for (HttpField f : this)
            if (f.getName().equalsIgnoreCase(name))
                list.add(f.getValue());
        return list;
    }
386827
public URIBuilder with(String name, Object value) {
    options.put(name, Conversions.makeString(value));
    this.isView = true;
    return this;
  }
593060
public static String createPropertyFilter(String name, String value) {
        assert name.matches("[^=><~()]+");

        StringBuilder builder = new StringBuilder(name.length() + 3 + (value == null ? 0 : value.length() * 2));
        builder.append('(').append(name).append('=');

        int begin = 0;
        if (value != null) {
            for (int i = 0; i < value.length(); i++) {
                if ("\\*()".indexOf(value.charAt(i)) != -1) {
                    builder.append(value, begin, i).append('\\');
                    begin = i;
                }
            }

            return builder.append(value, begin, value.length()).append(')').toString();
        } else {
            return builder.append(')').toString();
        }
    }
78989
public String get(String name) {
    List<String> valuesList = values(name);
    String value = null;
    if (valuesList != null && valuesList.size() > 0) {
      value = valuesList.get(0);
    }
    return value;
  }
329744
public String setAttribute(final String name, final String value) {
        if(null!=value){
            return getAttributes().put(name, value);
        }else{
            getAttributes().remove(name);
            return value;
        }
    }
68133
private String encode(String value) {
    return this.encode.isEncodingRequired() ? UriUtils.encode(value, this.charset) : value;
  }