Java: String representation of just the host, scheme, possibly port from servlet request

后端 未结 5 1769
天命终不由人
天命终不由人 2021-01-04 22:08

I work with different servers and configurations. What is the best java code approach for getting the scheme://host:[port if it is not port 80].

Here is some code I

5条回答
提交回复
热议问题