org.ibisph.resource
Class URISystemID

java.lang.Object
  extended by org.ibisph.resource.AbstractSystemID
      extended by org.ibisph.resource.URISystemID
All Implemented Interfaces:
java.io.Serializable, SystemID

public class URISystemID
extends AbstractSystemID

URI based System ID resource (file or URL). Provides system ID string based on a java.net.URI object. Since a URI accepts either a file or a URL this functionality could be implemented in the base _SystemID class. The only value added by splitting out is the specific exceptions being thrown and the class being named explicitly to what it is.

Author:
Garth Braithwaite, STG
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ibisph.resource.AbstractSystemID
systemID
 
Constructor Summary
URISystemID(java.lang.String uriPrefixPathAndFilename)
          Core constructor that accepts a file path and name or a complete URL.
 
Method Summary
static java.lang.String toString(java.lang.String uriPrefixPathAndFilename)
          Helper that creates a System ID string via the URI object based on the URI path and filename string passed in.
 
Methods inherited from class org.ibisph.resource.AbstractSystemID
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URISystemID

public URISystemID(java.lang.String uriPrefixPathAndFilename)
            throws java.net.URISyntaxException
Core constructor that accepts a file path and name or a complete URL.

Parameters:
uriPrefixPathAndFilename - Text that represents a complete or relative file/resource path and name.
Throws:
java.net.URISyntaxException
Method Detail

toString

public static java.lang.String toString(java.lang.String uriPrefixPathAndFilename)
Helper that creates a System ID string via the URI object based on the URI path and filename string passed in.

Parameters:
uriPrefixPathAndFilename - Complete resource prefix (http://, file: etc.) path and filename that points to the resource.
Returns:
system ID string, null otherwise.