public HttpMessage queryParam(final String name, final String value) {
        if (!StringUtils.hasText(name)) {
            throw new CitrusRuntimeException("Invalid query param name - must not be empty!");
        }

        this.addQueryParam(name, value);

        final String queryParamString = queryParams.entrySet()
                .stream()
                .map(this::outputQueryParam)
                .collect(Collectors.joining(","));

        header(HttpMessageHeaders.HTTP_QUERY_PARAMS, queryParamString);
        header(DynamicEndpointUriResolver.QUERY_PARAM_HEADER_NAME, queryParamString);

        return this;
    }
public HttpMessage queryParam ( final String name , final String value ) { if ( ! StringUtils . hasText ( name ) ) { throw new CitrusRuntimeException ( "Invalid query param name - must not be empty!" ) ; } this . addQueryParam ( name , value ) ; final String queryParamString = queryParams . entrySet ( ) . stream ( ) . map ( this :: outputQueryParam ) . collect ( Collectors . joining ( "," ) ) ; header ( HttpMessageHeaders . HTTP_QUERY_PARAMS , queryParamString ) ; header ( DynamicEndpointUriResolver . QUERY_PARAM_HEADER_NAME , queryParamString ) ; return this ; }
Sets a new Http request query param.

@param name  The name of the request query parameter
@param value The value of the request query parameter
@return The altered HttpMessage