org.eclipse.ecf.filetransfer.identity
Interface IFileID

All Superinterfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable, ID, java.security.Principal, java.io.Serializable
All Known Implementing Classes:
FileTransferID, XMPPFileID

public interface IFileID
extends ID

ID for a remote file.


Method Summary
 java.lang.String getFilename()
          Get the file name from this IFileID.
 java.net.URI getURI()
          Get the URI associated with the file identified by this IFileID.
 java.net.URL getURL()
          Get the url associated with the file identified by this IFileID.
 
Methods inherited from interface org.eclipse.ecf.core.identity.ID
equals, getName, getNamespace, hashCode, toExternalForm
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface java.security.Principal
toString
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getFilename

java.lang.String getFilename()
Get the file name from this IFileID. This will return just the filename portion of a more complex file ID, e.g. index.html from IFileID created with value "http://www.composent.com/index.html"

Returns:
String just the file name and extension (if any) for this given IFileID. Will not be null.

getURL

java.net.URL getURL()
                    throws java.net.MalformedURLException
Get the url associated with the file identified by this IFileID.

Returns:
URL associated with this IFileID. Will not be null.
Throws:
java.net.MalformedURLException - thrown if URL cannot be created for this IFileID

getURI

java.net.URI getURI()
                    throws java.net.URISyntaxException
Get the URI associated with the file identified by this IFileID.

Returns:
URI associated with this IFileID. Will not be null.
Throws:
java.net.URISyntaxException - thrown if URI cannot be created for this IFileID.
Since:
5.0