org.eclipse.ecf.provider.filetransfer.httpclient
Class HttpClientFileSystemBrowser

java.lang.Object
  extended by org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser
      extended by org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientFileSystemBrowser

public class HttpClientFileSystemBrowser
extends AbstractFileSystemBrowser


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser
AbstractFileSystemBrowser.DirectoryJob, AbstractFileSystemBrowser.RemoteFileSystemRequest
 
Field Summary
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
           
 
Fields inherited from class org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser
connectContext, directoryOrFile, fileID, job, listener, proxy, remoteFiles
 
Constructor Summary
HttpClientFileSystemBrowser(org.apache.commons.httpclient.HttpClient httpClient, IFileID directoryOrFileID, IRemoteFileSystemListener listener, java.net.URL directoryOrFileURL, IConnectContext connectContext, Proxy proxy)
           
 
Method Summary
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)
           
 
Methods inherited from class org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser
cleanUp, createRemoteFileEvent, getException, isCanceled, newUserCancelledException, selectProxyFromProxies, sendBrowseRequest, setCanceled, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HttpClientFileSystemBrowser

public HttpClientFileSystemBrowser(org.apache.commons.httpclient.HttpClient httpClient,
                                   IFileID directoryOrFileID,
                                   IRemoteFileSystemListener listener,
                                   java.net.URL directoryOrFileURL,
                                   IConnectContext connectContext,
                                   Proxy proxy)
Parameters:
directoryOrFileID -
listener -
Method Detail

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