Code example for URI

Methods: getHostgetPortgetSchemegetUserInfo

0
		 * @return 
		 * @throws URISyntaxException 
		 */ 
	    static protected URI createNewPathUri(URI oldPathUri, String newPath)
	            throws URISyntaxException { 
	        return new URI(oldPathUri.getScheme(), oldPathUri.getUserInfo(),
	                oldPathUri.getHost(), oldPathUri.getPort(), newPath, null, null);
	    } 
	} 
Connect your IDE to all the code out there  Get Codota for Java