com.novell.util
Class URIResolver

java.lang.Object
  extended bycom.novell.util.URIResolver

public class URIResolver
extends Object

Utility class for resolving a possibly relative URI into absolute form


Method Summary
static String resolveURI(String uri, String base)
          Resolve the passed URI into an absolute URI, using the passed base URI as the absolute base for relative URIs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolveURI

public static String resolveURI(String uri,
                                String base)
Resolve the passed URI into an absolute URI, using the passed base URI as the absolute base for relative URIs. Note that this is currently implemented using java.net.URL if the uri is not already absolute. To generically implement it will require a uri parser (see http://www.ietf.org/rfc/rfc2396.txt for information on parsing URIs and resolving relative URIs).

Parameters:
uri - The (possibly) relative uri to resolve.
base - The absolute base URI against which to resolve the relative uri.