private URI createRequestURI ( ) throws URISyntaxException { URI uri = getEndpoint ( ) . toURI ( ) ; URIBuilder builder = new URIBuilder ( uri ) . setCharset ( StandardCharsets . UTF_8 ) ; for ( HttpParameter parameter : queryParams . values ( ) ) { builder . addParameter ( parameter . getName ( ) , parameter . getValue ( ) ) ; } return builder . build ( ) ; }
Create request URI . Each additional query parameters will be appended to final URI .