Code example for URI

Methods: getSchemetoString

0
		Db db = uri2db.get(uri);
		if (db != null) return db;
		 
		try 
		{ 
			db = getDb(new URI(uri));
		} 
		catch (URISyntaxException e)
		{ 
			e.printStackTrace();
			return null; 
		} 
		 
		uri2db.put(uri, db);
		 
		return db;
	} 
	 
	public static Db getDb() 
	{ 
		return getDb(ConfServer.dburi); 
	} 
	 
	public static Db getDb(URI uri)
	{ 
		String scheme = uri.getScheme();
		Driver driver = getDriver(scheme);
		if (driver == null) return null; 
		return driver.getDb(uri.toString());
	} 
	 
	 
}