public UriComponentsBuilder replaceQueryParam ( String name , Object ... values ) { Assert . notNull ( name , "'name' must not be null" ) ; this . queryParams . remove ( name ) ; if ( ! ObjectUtils . isEmpty ( values ) ) { queryParam ( name , values ) ; } resetSchemeSpecificPart ( ) ; return this ; }
Set the query parameter values overriding all existing query values for the same parameter . If no values are given the query parameter is removed .