public void addParameter(final String paramName,final String paramValue) throws IllegalArgumentException {
  LOG.trace("enter PostMethod.addParameter(String, String)");
  if ((paramName == null) || (paramValue == null)) {
    throw new IllegalArgumentException("Arguments to addParameter(String, String) cannot be null");
  }
  super.clearRequestBody();
  params.add(new NameValuePair(paramName,paramValue));
}

public void addParameter ( final String paramName , final String paramValue ) throws IllegalArgumentException { LOG . trace ( "enter PostMethod.addParameter(String, String)" ) ; if ( ( paramName == null ) || ( paramValue == null ) ) { throw new IllegalArgumentException ( "Arguments to addParameter(String, String) cannot be null" ) ; } super . clearRequestBody ( ) ; params . add ( new NameValuePair ( paramName , paramValue ) ) ; }
adds a new parameter to be used in the post request body .
