I am using UriComponentsBuilder
as such:
UriComponentsBuilder builder = UriComponentsBuilder.fromUriString("com.stuff.mycompany:auth/stream/service");
allRequestParams.forEach((k, v) -> builder.queryParam(k, v)); // add all query params
URI uri = builder.encode().build().toUri();
When I run this code, it returns com.stuff.mycompany:?query=whatever
, and it truncates the auth/stream/service
. I noticed that if I add two slashes after the colon, it works as expected (com.stuff.mycompany:auth/stream/service
).
However, I have a requirement to follow and cannot include the double slashes. How can I get this working as expected?