@Test public void geosciml20() { String path = SchemaResolver.getSimpleHttpResourcePath( "http: Assert.assertEquals(path, "/org/geosciml/www/geosciml/2.0/xsd/geosciml.xsd"); String classpathPath = SchemaResolver.class.getResource(path).toExternalForm(); Assert.assertTrue(classpathPath.startsWith("jar:file:/")); Assert.assertTrue( classpathPath.endsWith("!/org/geosciml/www/geosciml/2.0/xsd/geosciml.xsd")); }
public static String getSimpleHttpResourcePath(String location) { return getSimpleHttpResourcePath(location, false); }
SchemaResolver { public static String getSimpleHttpResourcePath(String location) { return getSimpleHttpResourcePath(location, false); } }
SchemaResolver { public static String getSimpleHttpResourcePath(String location) { return getSimpleHttpResourcePath(location, false); } SchemaResolver(SchemaCatalog catalog, boolean classpath, SchemaCache cache);  SchemaResolver(SchemaCatalog catalog, SchemaCache cache);  SchemaResolver();  SchemaResolver(SchemaCatalog catalog);  SchemaResolver(SchemaCache cache); }
SchemaResolver { public static String getSimpleHttpResourcePath(String location) { return getSimpleHttpResourcePath(location, false); } SchemaResolver(SchemaCatalog catalog, boolean classpath, SchemaCache cache);  SchemaResolver(SchemaCatalog catalog, SchemaCache cache);  SchemaResolver();  SchemaResolver(SchemaCatalog catalog);  SchemaResolver(SchemaCache cache); String resolve(String location, String context); String resolve(String location); static String getSimpleHttpResourcePath(String location); static String getSimpleHttpResourcePath(String location, boolean keepQuery); static String getSimpleHttpResourcePath(URI location); static String getSimpleHttpResourcePath(URI location, boolean keepQuery); static URL getClasspathResourceUrl(String location); static String resolveClasspathLocation(String location); }
SchemaResolver { public static String getSimpleHttpResourcePath(String location) { return getSimpleHttpResourcePath(location, false); } SchemaResolver(SchemaCatalog catalog, boolean classpath, SchemaCache cache);  SchemaResolver(SchemaCatalog catalog, SchemaCache cache);  SchemaResolver();  SchemaResolver(SchemaCatalog catalog);  SchemaResolver(SchemaCache cache); String resolve(String location, String context); String resolve(String location); static String getSimpleHttpResourcePath(String location); static String getSimpleHttpResourcePath(String location, boolean keepQuery); static String getSimpleHttpResourcePath(URI location); static String getSimpleHttpResourcePath(URI location, boolean keepQuery); static URL getClasspathResourceUrl(String location); static String resolveClasspathLocation(String location);  }