public abstract class AbstractFileSystemBrowser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractFileSystemBrowser.DirectoryJob |
class |
AbstractFileSystemBrowser.RemoteFileSystemRequest |
Modifier and Type | Field and Description |
---|---|
protected IConnectContext |
connectContext |
protected java.net.URL |
directoryOrFile |
protected IFileID |
fileID |
protected AbstractFileSystemBrowser.DirectoryJob |
job |
protected IRemoteFileSystemListener |
listener |
protected Proxy |
proxy |
protected IRemoteFile[] |
remoteFiles |
Constructor and Description |
---|
AbstractFileSystemBrowser(IFileID directoryOrFileID,
IRemoteFileSystemListener listener,
java.net.URL url,
IConnectContext connectContext,
Proxy proxy) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel() |
protected void |
cleanUp() |
protected IRemoteFileSystemEvent |
createRemoteFileEvent() |
protected IRemoteFileSystemRequest |
createRemoteFileSystemRequest() |
protected java.lang.Exception |
getException() |
protected boolean |
isCanceled() |
protected UserCancelledException |
newUserCancelledException() |
protected abstract void |
runRequest()
Run the actual request.
|
protected org.eclipse.core.net.proxy.IProxyData |
selectProxyFromProxies(java.lang.String protocol,
org.eclipse.core.net.proxy.IProxyData[] proxies)
Select a single proxy from a set of proxies available for the given host.
|
IRemoteFileSystemRequest |
sendBrowseRequest() |
protected void |
setCanceled(java.lang.Exception e) |
protected void |
setException(java.lang.Exception exception) |
protected void |
setupProxies() |
protected abstract void |
setupProxy(Proxy proxy) |
protected IFileID fileID
protected IRemoteFileSystemListener listener
protected IRemoteFile[] remoteFiles
protected Proxy proxy
protected java.net.URL directoryOrFile
protected IConnectContext connectContext
protected AbstractFileSystemBrowser.DirectoryJob job
public AbstractFileSystemBrowser(IFileID directoryOrFileID, IRemoteFileSystemListener listener, java.net.URL url, IConnectContext connectContext, Proxy proxy)
protected void cancel()
protected void cleanUp()
protected abstract void runRequest() throws java.lang.Exception
java.lang.Exception
- if some problem with making the request or receiving response to the request.public IRemoteFileSystemRequest sendBrowseRequest()
protected IRemoteFileSystemRequest createRemoteFileSystemRequest()
protected IRemoteFileSystemEvent createRemoteFileEvent()
protected abstract void setupProxy(Proxy proxy)
protected org.eclipse.core.net.proxy.IProxyData selectProxyFromProxies(java.lang.String protocol, org.eclipse.core.net.proxy.IProxyData[] proxies)
protocol
- the target protocol (e.g. http, https, scp, etc). Will not be null
.proxies
- the proxies to select from. May be null
or array of length 0.protected void setupProxies()
protected void setException(java.lang.Exception exception)
protected java.lang.Exception getException()
protected boolean isCanceled()
protected void setCanceled(java.lang.Exception e)
protected UserCancelledException newUserCancelledException()