Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final static String getBaseUrl(URI uri) {
- String url = uri.getScheme() + "://" + uri.getAuthority();
- int port = uri.getPort();
- if (port == -1) {
- port = getPort(uri);
- url += ":" + port;
- }
- return url;
- }
Add Comment
Please, Sign In to add comment