|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileShareContainerAdapter
File share container entry point adapter. This interface is an adapter to allow providers to expose file sharing to clients. It may be used in the following way:
IFileShareContainerAdapter filesharecontainer = (IFileShareContainerAdapter) container.getAdapter(IFileShareContainerAdapter.class); if (filesharecontainer != null) { // use filesharecontainer ... } else { // container does not support file share container functionality }
Method Summary | |
---|---|
IFileShare |
createRetriever(ID fileShareID,
ID remoteSrc,
java.io.File localTarget,
IFileShareListener listener,
java.util.Map properties)
Create IFileShare instance for receiving a file |
IFileShare |
createRetriever(IFileShareRetrieveConfig config)
Create IFileShare instance for receiving a file |
IFileShare |
createSender(ID fileShareID,
java.io.InputStream inputForSend,
ID remoteTarget,
IFileShareListener listener,
java.util.Map properties)
Create IFileShare instance for sending a file |
IFileShare |
createSender(IFileShareSenderConfig config)
Create IFileShare instance for sending a file |
Namespace |
getFileNamespace()
Get Namespace for identifying remote files. |
IFileShare |
getFileShare(ID fileShareID)
Get IFileShare instance from container |
Namespace |
getFileShareNamespace()
Get Namespace for creating new IFileShare IDs. |
boolean |
removeFileShare(ID fileShareID)
Remove IFileShare instance from container |
Method Detail |
---|
Namespace getFileShareNamespace()
Namespace getFileNamespace()
IFileShare createSender(ID fileShareID, java.io.InputStream inputForSend, ID remoteTarget, IFileShareListener listener, java.util.Map properties) throws ECFException
fileShareID
- the ID for the new IFileShare instance. This ID must be created with the namespace
returned from getFileShareNamespace()
. Must not be null.inputForSend
- the InputStream representing access to the local file being sent. Must not be null.remoteTarget
- the ID specifying the file name on the remote system. This ID must be created
with the namespace returned from getFileNamespace()
.listener
- the IFileShareListener to receive asynchronous notifications as the file sharing
is performedproperties
- a Map of properties associated with the IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parametersIFileShare createSender(IFileShareSenderConfig config) throws ECFException
config
- IFileShareSenderConfig defining the configuration for the new IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parametersIFileShare createRetriever(ID fileShareID, ID remoteSrc, java.io.File localTarget, IFileShareListener listener, java.util.Map properties) throws ECFException
fileShareID
- the ID for the new IFileShare instance. This ID must be created with the namespace
returned from getFileShareNamespace()
. Must not be null.remoteSrc
- the ID specifying the file name on the remote system to retrieve. This ID must be created
with the namespace returned from getFileNamespace()
.localTarget
- a target file/directory on local file system for storage of the retrieved filelistener
- the IFileShareListener to receive asynchronous notifications as the file sharing
is performedproperties
- a Map of properties associated with the IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parametersIFileShare createRetriever(IFileShareRetrieveConfig config) throws ECFException
config
- IFileShareSenderConfig defining the configuration for the new IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parametersIFileShare getFileShare(ID fileShareID)
fileShareID
- the ID of the IFileShare instance to retrieve
boolean removeFileShare(ID fileShareID)
fileShareID
- the ID of the IFileShare instance to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |