DBURI { static void dump(String description, URI dburi) { String dumpString = String.format( "dump (%s)\n: isOpaque=%s, isAbsolute=%s Scheme=%s,\n SchemeSpecificPart=%s,\n Host=%s,\n Port=%s,\n Path=%s,\n Fragment=%s,\n Query=%s\n", description, dburi.isOpaque(), dburi.isAbsolute(), dburi.getScheme(), dburi.getSchemeSpecificPart(), dburi.getHost(), dburi.getPort(), dburi.getPath(), dburi.getFragment(), dburi.getQuery()); LOGGER.fine(dumpString); String query = dburi.getQuery(); if (null != query && !"".equals(query)) { String[] params = query.split("&"); Map<String, String> map = new HashMap<>(); for (String param : params) { String[] splits = param.split("="); String name = splits[0]; String value = null; if (splits.length > 1) { value = splits[1]; } map.put(name, value); LOGGER.fine(String.format("name=%s,value=%s\n", name, value)); } } } DBURI(String string);  DBURI(String scheme, String userInfo, String host, int port, String path, String query, String fragment); URI getUri(); void setUri(URI uri); DBType getDbType(); void setDbType(DBType dbType); List<String> getSchemasList(); void setSchemasList(List<String> schemasList); List<String> getSourceCodeTypesList(); void setSourceCodeTypesList(List<String> sourceCodeTypesList); List<String> getSourceCodeNamesList(); void setSourceCodeNamesList(List<String> sourceCodeNamesList); List<String> getLanguagesList(); void setLanguagesList(List<String> languagesList); String getDriverClass(); void setDriverClass(String driverClass); String getCharacterSet(); void setCharacterSet(String characterSet); int getSourceCodeType(); void setSourceCodeType(int sourceCodeType); String getSubprotocol(); void setSubprotocol(String subprotocol); String getSubnamePrefix(); void setSubnamePrefix(String subnamePrefix); Map<String, String> getParameters(); void setParameters(Map<String, String> parameters); String getURL(); void setURL(String jdbcURL); @Override String toString();  }
@Test public void testDump() throws URISyntaxException, Exception { System.out.println("dump"); String description = ""; DBURI dburi = new DBURI(C_TEST_URI); DBURI.dump(description, dburi.getUri()); }