src/main/java/org/jboss/util/xml/catalog/Catalog.java
public String resolveURI(String uri)
    throws MalformedURLException, IOException {

    catalogManager.debug.message(3, "resolveURI("+uri+")");

    uri = normalizeURI(uri);

    if (uri != null && uri.startsWith("urn:publicid:")) {
      uri = PublicId.decodeURN(uri);
      return resolvePublic(uri, null);
    }

    // If there's a URI entry in this catalog, use it
    if (uri != null) {
      String resolved = resolveLocalURI(uri);
      if (resolved != null) {
	return resolved;
      }
    }

    // Otherwise, look in the subordinate catalogs
    return resolveSubordinateCatalogs(URI,
				      null,
				      null,
				      uri);
  }
public String resolveURI(String uri)
    throws MalformedURLException, IOException {

    catalogManager.debug.message(3, "resolveURI("+uri+")");

    uri = normalizeURI(uri);

    if (uri != null && uri.startsWith("urn:publicid:")) {
      uri = PublicId.decodeURN(uri);
      return resolvePublic(uri, null);
    }

    // If there's a URI entry in this catalog, use it
    if (uri != null) {
      String resolved = resolveLocalURI(uri);
      if (resolved != null) {
	return resolved;
      }
    }

    // Otherwise, look in the subordinate catalogs
    return resolveSubordinateCatalogs(URI,
				      null,
				      null,
				      uri);
  }
public String resolveURI ( String uri ) throws MalformedURLException , IOException { catalogManager . debug . message ( 3 , "resolveURI(" + uri + ")" ) ; uri = normalizeURI ( uri ) ; if ( uri != null && uri . startsWith ( "urn:publicid:" ) ) { uri = PublicId . decodeURN ( uri ) ; return resolvePublic ( uri , null ) ; } // If there's a URI entry in this catalog, use it if ( uri != null ) { String resolved = resolveLocalURI ( uri ) ; if ( resolved != null ) { return resolved ; } } // Otherwise, look in the subordinate catalogs return resolveSubordinateCatalogs ( URI , null , null , uri ) ; }
Return the applicable URI.

<p>If a URI entry exists in the Catalog
for the URI specified, return the mapped value.</p>

<p>URI comparison is case sensitive.</p>

@param uri The URI to locate in the catalog.

@return The resolved URI.

@throws MalformedURLException The system identifier of a
subordinate catalog cannot be turned into a valid URL.
@throws IOException Error reading subordinate catalog file.
Return the applicable URI .