public class MultiProtocolFileSystemBrowserAdapter extends java.lang.Object implements IRemoteFileSystemBrowser
Constructor and Description |
---|
MultiProtocolFileSystemBrowserAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAdapter(java.lang.Class adapter) |
Namespace |
getBrowseNamespace()
Get the
Namespace instance for creating IFileIDs that represent remote files or directories. |
IRemoteFileSystemRequest |
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 subsequent
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener) . |
void |
setProxy(Proxy proxy)
Set proxy for use upon subsequent
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener) . |
public MultiProtocolFileSystemBrowserAdapter()
public void setConnectContextForAuthentication(IConnectContext connectContext)
IRemoteFileSystemBrowserContainerAdapter
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
. This
method should be called with a non-null connectContext in order to allow
authentication to occur during call to
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.setConnectContextForAuthentication
in interface IRemoteFileSystemBrowserContainerAdapter
connectContext
- the connect context to use for authenticating during
subsequent call to
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.
If null
, then no authentication will be
attempted.public void setProxy(Proxy proxy)
IRemoteFileSystemBrowserContainerAdapter
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
. This
method should be called with a non-null proxy to allow the given proxy to
be used in subsequent calls to
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.setProxy
in interface IRemoteFileSystemBrowserContainerAdapter
proxy
- the proxy to use for subsequent calls to
IRemoteFileSystemBrowserContainerAdapter.sendBrowseRequest(IFileID, IRemoteFileSystemListener)
.
If null
, then no proxy will be used.public Namespace getBrowseNamespace()
IRemoteFileSystemBrowserContainerAdapter
Namespace
instance for creating IFileIDs that represent remote files or directories.getBrowseNamespace
in interface IRemoteFileSystemBrowserContainerAdapter
null
.public IRemoteFileSystemRequest sendBrowseRequest(IFileID directoryOrFileID, IRemoteFileSystemListener listener) throws RemoteFileSystemException
IRemoteFileSystemBrowserContainerAdapter
sendBrowseRequest
in interface IRemoteFileSystemBrowserContainerAdapter
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 be
null
.RemoteFileSystemException
- if browse request cannot be accomplishedpublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable