Code example for URI

Methods: getHostgetPathgetPortgetQuerygetSchemegetUserInfo

0
	} 
	 
	public URI setFragment(URI baseUri, String newFragment) throws UrlBuilderException
	{ 
		try { 
			return new URI(baseUri.getScheme(), baseUri.getUserInfo(), baseUri.getHost(), 
					baseUri.getPort(), baseUri.getPath(), baseUri.getQuery(), newFragment);
		} catch (URISyntaxException e) {
			throw new UrlBuilderException(e);
		} 
	} 
	 
	protected Map<String, String> parseQueryParameters(String query)
	{ 
		if (query == null)
		{ 
			return null; 
		} 
		 
		Scanner scanner = new Scanner(query);
		try {