Class MultiProtocolFileSystemBrowserAdapter
java.lang.Object
org.eclipse.ecf.provider.filetransfer.browse.MultiProtocolFileSystemBrowserAdapter
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,IRemoteFileSystemBrowserContainerAdapter
,IRemoteFileSystemBrowser
public class MultiProtocolFileSystemBrowserAdapter
extends Object
implements IRemoteFileSystemBrowser
Multi protocol handler for remote file system browser.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getAdapter
(Class<T> adapter) Get 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 subsequentIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.void
Set proxy for use upon subsequentIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.
-
Constructor Details
-
MultiProtocolFileSystemBrowserAdapter
public MultiProtocolFileSystemBrowserAdapter()
-
-
Method Details
-
setConnectContextForAuthentication
Description copied from interface:IRemoteFileSystemBrowserContainerAdapter
Set connect context for authentication upon subsequentIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
. This method should be called with a non-null connectContext in order to allow authentication to occur during call toIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.- Specified by:
setConnectContextForAuthentication
in interfaceIRemoteFileSystemBrowserContainerAdapter
- Parameters:
connectContext
- the connect context to use for authenticating during subsequent call toIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
. Ifnull
, then no authentication will be attempted.
-
setProxy
Description copied from interface:IRemoteFileSystemBrowserContainerAdapter
Set proxy for use upon subsequentIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
. This method should be called with a non-null proxy to allow the given proxy to be used in subsequent calls toIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.- Specified by:
setProxy
in interfaceIRemoteFileSystemBrowserContainerAdapter
- Parameters:
proxy
- the proxy to use for subsequent calls toIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
. Ifnull
, then no proxy will be used.
-
getBrowseNamespace
Description copied from interface:IRemoteFileSystemBrowserContainerAdapter
Get theNamespace
instance for creating IFileIDs that represent remote files or directories.- Specified by:
getBrowseNamespace
in interfaceIRemoteFileSystemBrowserContainerAdapter
- Returns:
- Namespace for remote files or directories. Will not be
null
.
-
sendBrowseRequest
public IRemoteFileSystemRequest sendBrowseRequest(IFileID directoryOrFileID, IRemoteFileSystemListener listener) throws RemoteFileSystemException Description copied from interface:IRemoteFileSystemBrowserContainerAdapter
Send a request for file or directory information for given directoryOrFileID.- Specified by:
sendBrowseRequest
in interfaceIRemoteFileSystemBrowserContainerAdapter
- 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
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-