Class FileIDFactory
java.lang.Object
org.eclipse.ecf.filetransfer.identity.FileIDFactory
- All Implemented Interfaces:
IFileIDFactory
Factory class entry point for creating IFileID instances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFileID(Namespace namespace, Object[] arguments) Create an IFileID from a Namespace and a String.createFileID(Namespace namespace, String remoteFile) Create an IFileID from a Namespace and a String.createFileID(Namespace namespace, URI remoteFile) Create an IFileID from a Namespace and a String.createFileID(Namespace namespace, URL remoteFile) Create an IFileID from a Namespace and a String.static FileIDFactoryGet singleton instance
-
Field Details
-
instance
-
-
Constructor Details
-
FileIDFactory
public FileIDFactory()
-
-
Method Details
-
getDefault
Get singleton instance- Returns:
- FileIDFactory singleton instance. Will not be
null. - Since:
- 5.0
-
createFileID
Create an IFileID from a Namespace and a String.- Specified by:
createFileIDin interfaceIFileIDFactory- Parameters:
namespace- the namespace to use to create the IFileID. Can useIRetrieveFileTransferContainerAdapter.getRetrieveNamespace(). Must not benull.remoteFile- the remote filename to use. Must not benull.- Returns:
- IFileID instance. Will not return
null. - Throws:
FileCreateException- thrown if some problem creating IFileID from given namespace and filename
-
createFileID
Create an IFileID from a Namespace and a String.- Specified by:
createFileIDin interfaceIFileIDFactory- Parameters:
namespace- the namespace to use to create the IFileID. Can useIRetrieveFileTransferContainerAdapter.getRetrieveNamespace(). Must not be null.remoteFile- the remote filename to use. Must not benull.- Returns:
- IFileID instance. Will not return
null. - Throws:
FileCreateException- thrown if some problem creating IFileID from given namespace and filename
-
createFileID
Create an IFileID from a Namespace and a String.- Specified by:
createFileIDin interfaceIFileIDFactory- Parameters:
namespace- the namespace to use to create the IFileID. Can useIRetrieveFileTransferContainerAdapter.getRetrieveNamespace(). Must not be null.remoteFile- the remote resource identifier to use. Must not benull.- Returns:
- IFileID instance. Will not return
null. - Throws:
FileCreateException- thrown if some problem creating IFileID from given namespace and filename- Since:
- 5.0
-
createFileID
Create an IFileID from a Namespace and a String.- Specified by:
createFileIDin interfaceIFileIDFactory- Parameters:
namespace- the namespace to use to create the IFileID. Can useIRetrieveFileTransferContainerAdapter.getRetrieveNamespace(). Must not benull.arguments- Object [] of arguments to use to create file ID. These arguments will be passed to theNamespace.createInstance(Object[])method of the appropriate Namespace setup by the provider- Returns:
- IFileID instance. Will not return
null. - Throws:
FileCreateException- thrown if some problem creating IFileID from given namespace and filename
-