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
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAdapter(Class<T> adapter) Get theNamespaceinstance 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.voidsetConnectContextForAuthentication(IConnectContext connectContext) Set connect context for authentication upon subsequentIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener).voidSet proxy for use upon subsequentIRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener).
-
Constructor Details
-
MultiProtocolFileSystemBrowserAdapter
public MultiProtocolFileSystemBrowserAdapter()
-
-
Method Details
-
setConnectContextForAuthentication
Description copied from interface:IRemoteFileSystemBrowserContainerAdapterSet 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:
setConnectContextForAuthenticationin 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:IRemoteFileSystemBrowserContainerAdapterSet 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:
setProxyin 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:IRemoteFileSystemBrowserContainerAdapterGet theNamespaceinstance for creating IFileIDs that represent remote files or directories.- Specified by:
getBrowseNamespacein 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:IRemoteFileSystemBrowserContainerAdapterSend a request for file or directory information for given directoryOrFileID.- Specified by:
sendBrowseRequestin 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:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-