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 .