public HttpRequest withParameter ( HttpParameter parameter ) { if ( parameter != null ) { parameters . add ( parameter ) ; } else { withoutParameter ( parameter ) ; } return this ; }
Sets the value of the given parameter replacing whatever was already in there ; if the value is null or empty the parameter is dropped altogether .