public void setRequestBody ( NameValuePair [ ] parametersBody ) throws IllegalArgumentException { log . trace ( "enter PostMethod.setRequestBody(NameValuePair[])" ) ; if ( parametersBody == null ) { throw new IllegalArgumentException ( "Array of parameters may not be null" ) ; } clearRequestBody ( ) ; addParameters ( parametersBody ) ; }
Sets an array of parameters to be used in the POST request body