I am looking to build a URI of the type : https://example.com/index.html#db/report/csv?token=4cec23a8a07b63c1ed74&time=1473951700000&name=GA
but what I am trying is producing incorrect results :
UriBuilder.fromUri("https://example.com").path("index.html#db/report/csv").queryParam("token", "4cec23a8a07b63c1ed74").queryParam("time", "1473951700000").queryParam("name", "GA").build();
The above is encoding the # and resulting in
https://example.com/index.html%23db/report/csv?token=4cec23a8a07b63c1ed74&time=1473951700000&name=GA
How to not encode the # and still get the desired Url.