org.ibisph.resource
Class VerifiedURLSystemID

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

public class VerifiedURLSystemID
extends AbstractSystemID

Verified URL System ID Resource. Provides a confirmed system ID string based on a URL.

Author:
Garth Braithwaite, STG
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ibisph.resource.AbstractSystemID
systemID
 
Constructor Summary
VerifiedURLSystemID(java.lang.String url)
          URL based System ID which has the resource's connection verified.
 
Method Summary
static java.lang.String toString(java.lang.String url)
          Helper that tries the specified path and filename as a URL and if it can be connected to the URL object is converted to a system ID String.
 
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

VerifiedURLSystemID

public VerifiedURLSystemID(java.lang.String url)
                    throws java.net.MalformedURLException,
                           java.io.IOException
URL based System ID which has the resource's connection verified. If the resource can NOT be opened/verified then an IOException is thrown.

Parameters:
url - URL string to be verified and converted to a system ID.
Throws:
java.net.MalformedURLException, - java.io.IOException
java.net.MalformedURLException
java.io.IOException
Method Detail

toString

public static java.lang.String toString(java.lang.String url)
Helper that tries the specified path and filename as a URL and if it can be connected to the URL object is converted to a system ID String.

Parameters:
url - Complete URL (protocol, address, context, path and filename) string to be connected to.
Returns:
Verified URL system ID string if connects, null otherwise.