I use uribuilder object from apache.http.client to create url
example:www.xxx.com/#/path/?query=123
my code as follow
URIBuilder uriBuilder = new URIBuilder();
uriBuilder.setScheme("http");
uriBuilder.setHost(host);
uriBuilder.setFragment(path);
uriBuilder.addParameter(query,123);
but the result is www.xxx.com/?query=123#path, how can I get correct url as I expected by uribuilder or other java tool library.