|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.filetransfer.identity.FileIDFactory
public class FileIDFactory
Factory class entry point for creating IFileID instances.
Field Summary | |
---|---|
protected static FileIDFactory |
instance
|
Constructor Summary | |
---|---|
FileIDFactory()
|
Method Summary | |
---|---|
IFileID |
createFileID(Namespace namespace,
java.lang.Object[] arguments)
Create an IFileID from a Namespace and a String. |
IFileID |
createFileID(Namespace namespace,
java.lang.String remoteFile)
Create an IFileID from a Namespace and a String. |
IFileID |
createFileID(Namespace namespace,
java.net.URI remoteFile)
Create an IFileID from a Namespace and a String. |
IFileID |
createFileID(Namespace namespace,
java.net.URL remoteFile)
Create an IFileID from a Namespace and a String. |
static FileIDFactory |
getDefault()
Get singleton instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static FileIDFactory instance
Constructor Detail |
---|
public FileIDFactory()
Method Detail |
---|
public static FileIDFactory getDefault()
null
.public IFileID createFileID(Namespace namespace, java.net.URL remoteFile) throws FileCreateException
createFileID
in interface IFileIDFactory
namespace
- the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace()
.
Must not be null
.remoteFile
- the remote filename to use. Must not be null
.
null
.
FileCreateException
- thrown if some problem creating IFileID from given namespace
and filenamepublic IFileID createFileID(Namespace namespace, java.lang.String remoteFile) throws FileCreateException
createFileID
in interface IFileIDFactory
namespace
- the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace()
.
Must not be null.remoteFile
- the remote filename to use. Must not be null
.
null
.
FileCreateException
- thrown if some problem creating IFileID from given namespace
and filenamepublic IFileID createFileID(Namespace namespace, java.net.URI remoteFile) throws FileCreateException
createFileID
in interface IFileIDFactory
namespace
- the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace()
.
Must not be null.remoteFile
- the remote resource identifier to use. Must not be null
.
null
.
FileCreateException
- thrown if some problem creating IFileID from given namespace
and filenamepublic IFileID createFileID(Namespace namespace, java.lang.Object[] arguments) throws FileCreateException
createFileID
in interface IFileIDFactory
namespace
- the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace()
.
Must not be null
.arguments
- Object [] of arguments to use to create file ID. These
arguments will be passed to the
Namespace.createInstance(Object[])
method of the
appropriate Namespace setup by the provider
null
.
FileCreateException
- thrown if some problem creating IFileID from given namespace
and filename
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |