BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xml.utils
Class SystemIDResolver

java.lang.Object
  |
  +--weblogic.apache.xml.utils.SystemIDResolver

public class SystemIDResolver
extends java.lang.Object

This class is used to resolve relative URIs and SystemID strings into absolute URIs.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.


Constructor Summary
SystemIDResolver()
           
 
Method Summary
static java.lang.String getAbsoluteURI(java.lang.String url)
          Take a SystemID string and try and turn it into a good absolute URL.
static java.lang.String getAbsoluteURI(java.lang.String urlString, java.lang.String base)
          Take a SystemID string and try and turn it into a good absolute URL.
static java.lang.String getAbsoluteURIFromRelative(java.lang.String uri)
          Get absolute URI from a given relative URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemIDResolver

public SystemIDResolver()
Method Detail

getAbsoluteURIFromRelative

public static java.lang.String getAbsoluteURIFromRelative(java.lang.String uri)
Get absolute URI from a given relative URI. The URI is resolved relative to the system property "user.dir"

Parameters:
uri - Relative URI to resolve
Returns:
Resolved absolute URI or the input relative URI if it could not be resolved.

getAbsoluteURI

public static java.lang.String getAbsoluteURI(java.lang.String url)
                                       throws javax.xml.transform.TransformerException
Take a SystemID string and try and turn it into a good absolute URL.

Parameters:
urlString - url A URL string, which may be relative or absolute.
Returns:
The resolved absolute URI
Throws:
javax.xml.transform.TransformerException - thrown if the string can't be turned into a URL.

getAbsoluteURI

public static java.lang.String getAbsoluteURI(java.lang.String urlString,
                                              java.lang.String base)
                                       throws javax.xml.transform.TransformerException
Take a SystemID string and try and turn it into a good absolute URL.

Parameters:
urlString - SystemID string
base - Base URI to use to resolve the given systemID
Returns:
The resolved absolute URI
Throws:
javax.xml.transform.TransformerException - thrown if the string can't be turned into a URL.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.