It will definitely need a `URI` there, not a strin...
# java-and-jvm
s
It will definitely need a
URI
there, not a string. I wonder if this would work:
Copy code
targetURI = createObject("java","java.net.URI").init(target);
request = httpRequestObj.newBuilder().uri(targetURI);
?