public class HttpClientFileSystemBrowser extends AbstractFileSystemBrowser
AbstractFileSystemBrowser.DirectoryJob, AbstractFileSystemBrowser.RemoteFileSystemRequest
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_CONNECTION_TIMEOUT |
protected org.apache.commons.httpclient.methods.HeadMethod |
headMethod |
protected org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.HostConfigHelper |
hostConfigHelper |
protected org.apache.commons.httpclient.HttpClient |
httpClient |
protected java.lang.String |
password |
protected java.lang.String |
username |
connectContext, directoryOrFile, fileID, job, listener, proxy, remoteFiles
Constructor and Description |
---|
HttpClientFileSystemBrowser(org.apache.commons.httpclient.HttpClient httpClient,
IFileID directoryOrFileID,
IRemoteFileSystemListener listener,
java.net.URL directoryOrFileURL,
IConnectContext connectContext,
Proxy proxy) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel() |
protected IRemoteFileSystemRequest |
createRemoteFileSystemRequest() |
protected org.apache.commons.httpclient.Credentials |
getFileRequestCredentials() |
protected boolean |
hasForceNTLMProxyOption() |
protected void |
runRequest()
Run the actual request.
|
protected void |
setupAuthentication(java.lang.String urlString) |
protected void |
setupHostAndPort(org.apache.commons.httpclient.auth.CredentialsProvider credProvider,
java.lang.String urlString) |
protected void |
setupProxies() |
protected void |
setupProxy(Proxy proxy) |
cleanUp, createRemoteFileEvent, getException, isCanceled, newUserCancelledException, selectProxyFromProxies, sendBrowseRequest, setCanceled, setException
protected static final int DEFAULT_CONNECTION_TIMEOUT
protected java.lang.String username
protected java.lang.String password
protected org.apache.commons.httpclient.HttpClient httpClient
protected volatile org.apache.commons.httpclient.methods.HeadMethod headMethod
protected org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.HostConfigHelper hostConfigHelper
public HttpClientFileSystemBrowser(org.apache.commons.httpclient.HttpClient httpClient, IFileID directoryOrFileID, IRemoteFileSystemListener listener, java.net.URL directoryOrFileURL, IConnectContext connectContext, Proxy proxy)
directoryOrFileID
- listener
- protected IRemoteFileSystemRequest createRemoteFileSystemRequest()
createRemoteFileSystemRequest
in class AbstractFileSystemBrowser
protected void cancel()
cancel
in class AbstractFileSystemBrowser
protected boolean hasForceNTLMProxyOption()
protected void setupProxies()
setupProxies
in class AbstractFileSystemBrowser
protected void runRequest() throws java.lang.Exception
AbstractFileSystemBrowser
runRequest
in class AbstractFileSystemBrowser
java.lang.Exception
- if some problem with making the request or receiving response to the request.protected void setupHostAndPort(org.apache.commons.httpclient.auth.CredentialsProvider credProvider, java.lang.String urlString)
protected org.apache.commons.httpclient.Credentials getFileRequestCredentials() throws UnsupportedCallbackException, java.io.IOException
UnsupportedCallbackException
java.io.IOException
protected void setupAuthentication(java.lang.String urlString) throws UnsupportedCallbackException, java.io.IOException
UnsupportedCallbackException
java.io.IOException
protected void setupProxy(Proxy proxy)
setupProxy
in class AbstractFileSystemBrowser