Code example for BasicNameValuePair

0
     */ 
    public HttpClientURIBuilder addParameter(final String param, final String value) {
        if (this.queryParams == null) {
            this.queryParams = new ArrayList<NameValuePair>();
        } 
        this.queryParams.add(new BasicNameValuePair(param, value));
        this.encodedQuery = null;
        this.encodedSchemeSpecificPart = null;
        return this;
    } 
 
    /** 
     * Sets parameter of URI query overriding existing value if set. The parameter name and value are expected to be unescaped and may contain non ASCII 
     * characters. 
     */ 
    public HttpClientURIBuilder setParameter(final String param, final String value) {
        if (this.queryParams == null) {
            this.queryParams = new ArrayList<NameValuePair>();
        } 
        if (!this.queryParams.isEmpty()) {
            for (Iterator<NameValuePair> it = this.queryParams.iterator(); it.hasNext();) {