I want to build the following URI -
https://10.112.88.182:8443/Vehicle/services/socialService/login
...
Builder builder = new Builder();
builder.scheme(Constants.URL_SCHEME);
builder.authority(host);
builder.appendPath(service + "/" +method);
return builder.build().toString();
where
URL_SCHEME
-https
host
-10.112.88.182:8443/Vehicle/services/
service
-socialService
method
-login
When this code runs I get the following URI -
https://10.112.88.182%3A8443%2FVehicle%2Fservices%2F/socialService%2Flogin
/
is replaced by %2F
and :
is replaced by %3A