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.IAdaptableRemote file system browser adapter. This adapter can be retrieved from a container for exposing remote file system browsing capabilities.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamespacegetBrowseNamespace()Get theNamespaceinstance for creating IFileIDs that represent remote files or directories.IRemoteFileSystemRequestsendBrowseRequest(IFileID directoryOrFileID, IRemoteFileSystemListener listener)Send a request for file or directory information for given directoryOrFileID.voidsetConnectContextForAuthentication(IConnectContext connectContext)Set connect context for authentication upon subsequentsendBrowseRequest(IFileID, IRemoteFileSystemListener).voidsetProxy(Proxy proxy)Set proxy for use upon subsequentsendBrowseRequest(IFileID, IRemoteFileSystemListener).
-
-
-
Method Detail
-
getBrowseNamespace
Namespace getBrowseNamespace()
Get theNamespaceinstance 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
void setConnectContextForAuthentication(IConnectContext connectContext)
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
void setProxy(Proxy proxy)
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.
-
-