Let's assume the following URI: http://127.0.0.1:8080/path/file
request.getAddress().toString() only returns the path: /path/file
Domain and Port number are omitted. getDomain() returns null and getPort() returns -1.
Aslo: What if there is an IP address but no domain, would getDomain() return the IP address?
Log in to post a comment.