org.eclipse.ecf.provider.filetransfer.httpclient
Class HttpClientFileSystemBrowser
java.lang.Object
org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser
org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientFileSystemBrowser
public class HttpClientFileSystemBrowser
- extends AbstractFileSystemBrowser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONNECTION_TIMEOUT
protected static final int DEFAULT_CONNECTION_TIMEOUT
username
protected java.lang.String username
password
protected java.lang.String password
httpClient
protected org.apache.commons.httpclient.HttpClient httpClient
headMethod
protected volatile org.apache.commons.httpclient.methods.HeadMethod headMethod
hostConfigHelper
protected org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.HostConfigHelper hostConfigHelper
HttpClientFileSystemBrowser
public HttpClientFileSystemBrowser(org.apache.commons.httpclient.HttpClient httpClient,
IFileID directoryOrFileID,
IRemoteFileSystemListener listener,
java.net.URL directoryOrFileURL,
IConnectContext connectContext,
Proxy proxy)
- Parameters:
directoryOrFileID
- listener
-
createRemoteFileSystemRequest
protected IRemoteFileSystemRequest createRemoteFileSystemRequest()
- Overrides:
createRemoteFileSystemRequest
in class AbstractFileSystemBrowser
cancel
protected void cancel()
- Overrides:
cancel
in class AbstractFileSystemBrowser
hasForceNTLMProxyOption
protected boolean hasForceNTLMProxyOption()
setupProxies
protected void setupProxies()
- Overrides:
setupProxies
in class AbstractFileSystemBrowser
runRequest
protected void runRequest()
throws java.lang.Exception
- Description copied from class:
AbstractFileSystemBrowser
- Run the actual request. This method is called within the job created to actually get the
directory or file information.
- Specified by:
runRequest
in class AbstractFileSystemBrowser
- Throws:
java.lang.Exception
- if some problem with making the request or receiving response to the request.
setupHostAndPort
protected void setupHostAndPort(org.apache.commons.httpclient.auth.CredentialsProvider credProvider,
java.lang.String urlString)
getFileRequestCredentials
protected org.apache.commons.httpclient.Credentials getFileRequestCredentials()
throws UnsupportedCallbackException,
java.io.IOException
- Throws:
UnsupportedCallbackException
java.io.IOException
setupAuthentication
protected void setupAuthentication(java.lang.String urlString)
throws UnsupportedCallbackException,
java.io.IOException
- Throws:
UnsupportedCallbackException
java.io.IOException
setupProxy
protected void setupProxy(Proxy proxy)
- Specified by:
setupProxy
in class AbstractFileSystemBrowser