public void addParameter(NameValuePair param) throws IllegalArgumentException {
  log.trace("enter PostMethod.addParameter(NameValuePair)");
  if (param == null) {
    throw new IllegalArgumentException("NameValuePair may not be null");
  }
  addParameter(param.getName(),param.getValue());
}

public void addParameter ( NameValuePair param ) throws IllegalArgumentException { log . trace ( "enter PostMethod.addParameter(NameValuePair)" ) ; if ( param == null ) { throw new IllegalArgumentException ( "NameValuePair may not be null" ) ; } addParameter ( param . getName ( ) , param . getValue ( ) ) ; }
adds a new parameter to be used in the post request body .
