Package org.eclipse.ecf.filetransfer
Interface IRemoteFileSystemBrowserContainerAdapter
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
- All Known Subinterfaces:
IRemoteFileSystemBrowser
- All Known Implementing Classes:
MultiProtocolFileSystemBrowserAdapter
public interface IRemoteFileSystemBrowserContainerAdapter
extends org.eclipse.core.runtime.IAdaptable
Remote file system browser adapter. This adapter can be retrieved from a container
for exposing remote file system browsing capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionGet theNamespace
instance for creating IFileIDs that represent remote files or directories.sendBrowseRequest
(IFileID directoryOrFileID, IRemoteFileSystemListener listener) Send a request for file or directory information for given directoryOrFileID.void
setConnectContextForAuthentication
(IConnectContext connectContext) Set connect context for authentication upon subsequentsendBrowseRequest(IFileID, IRemoteFileSystemListener)
.void
Set proxy for use upon subsequentsendBrowseRequest(IFileID, IRemoteFileSystemListener)
.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Method Details
-
getBrowseNamespace
Namespace getBrowseNamespace()Get theNamespace
instance for creating IFileIDs that represent remote files or directories.- Returns:
- Namespace for remote files or directories. Will not be
null
.
-
sendBrowseRequest
IRemoteFileSystemRequest sendBrowseRequest(IFileID directoryOrFileID, IRemoteFileSystemListener listener) throws RemoteFileSystemException Send a request for file or directory information for given directoryOrFileID.- Parameters:
directoryOrFileID
- the IFileID representing/specifying the remote directory or file to access.listener
- the listener that will be notified asynchronously when a response to this request is received. Must not benull
.- Returns:
- IRemoteFileSystemRequest the request instance.
- Throws:
RemoteFileSystemException
- if browse request cannot be accomplished
-
setConnectContextForAuthentication
Set connect context for authentication upon subsequentsendBrowseRequest(IFileID, IRemoteFileSystemListener)
. This method should be called with a non-null connectContext in order to allow authentication to occur during call tosendBrowseRequest(IFileID, IRemoteFileSystemListener)
.- Parameters:
connectContext
- the connect context to use for authenticating during subsequent call tosendBrowseRequest(IFileID, IRemoteFileSystemListener)
. Ifnull
, then no authentication will be attempted.
-
setProxy
Set proxy for use upon subsequentsendBrowseRequest(IFileID, IRemoteFileSystemListener)
. This method should be called with a non-null proxy to allow the given proxy to be used in subsequent calls tosendBrowseRequest(IFileID, IRemoteFileSystemListener)
.- Parameters:
proxy
- the proxy to use for subsequent calls tosendBrowseRequest(IFileID, IRemoteFileSystemListener)
. Ifnull
, then no proxy will be used.
-