public void setParameter(String name, String value) {
        String[] values = parameters.get(name);

        if (values == null) {
            values = new String[] { value };
            parameters.put(name, values);
        } else {
            String[] newValues = new String[values.length + 1];
            System.arraycopy(values, 0, newValues, 0, values.length);
            newValues[values.length] = value;
            parameters.put(name, newValues);
        }
    }
public void setParameter(String name, String value) {
        String[] values = parameters.get(name);

        if (values == null) {
            values = new String[] { value };
            parameters.put(name, values);
        } else {
            String[] newValues = new String[values.length + 1];
            System.arraycopy(values, 0, newValues, 0, values.length);
            newValues[values.length] = value;
            parameters.put(name, newValues);
        }
    }
public void setParameter ( String name , String value ) { String [ ] values = parameters . get ( name ) ; if ( values == null ) { values = new String [ ] { value } ; parameters . put ( name , values ) ; } else { String [ ] newValues = new String [ values . length + 1 ] ; System . arraycopy ( values , 0 , newValues , 0 , values . length ) ; newValues [ values . length ] = value ; parameters . put ( name , newValues ) ; } }
<p> Sets a parameter for this request.  The parameter is actually
separate from the request parameters, but calling on the getParameter()
methods of this class will work as if they weren't. </p>
<p > Sets a parameter for this request . The parameter is actually separate from the request parameters but calling on the getParameter () methods of this class will work as if they weren t . < / p >