public class HttpClientFileSystemBrowser
extends AbstractFileSystemBrowser
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_CONNECTION_TIMEOUT |
protected HttpHead |
headMethod |
protected DefaultHttpClient |
httpClient |
protected HttpContext |
httpContext
This is the context used to retain information about the request that
the
HttpClient gathers during the request. |
protected HttpResponse |
httpResponse
This is the response returned by
HttpClient when it executes
headMethod. |
protected java.lang.String |
password |
protected java.lang.String |
username |
| Constructor and Description |
|---|
HttpClientFileSystemBrowser(DefaultHttpClient httpClient,
IFileID directoryOrFileID,
IRemoteFileSystemListener listener,
java.net.URL directoryOrFileURL,
IConnectContext connectContext,
Proxy proxy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel() |
protected void |
cleanUp() |
protected void |
clearProxy()
This method will clear out the proxy information (so that if this is
reused for a request without a proxy, it will work correctly).
|
protected IRemoteFileSystemRequest |
createRemoteFileSystemRequest() |
protected Credentials |
getFileRequestCredentials()
Retrieves the credentials for requesting the file.
|
protected boolean |
hasForceNTLMProxyOption() |
protected void |
runRequest() |
protected void |
setupAuthentication(java.lang.String urlString) |
protected void |
setupProxies() |
protected void |
setupProxy(Proxy proxy) |
protected static final int DEFAULT_CONNECTION_TIMEOUT
protected java.lang.String username
protected java.lang.String password
protected DefaultHttpClient httpClient
protected volatile HttpHead headMethod
protected volatile HttpResponse httpResponse
HttpClient when it executes
headMethod.protected volatile HttpContext httpContext
HttpClient gathers during the request.public HttpClientFileSystemBrowser(DefaultHttpClient httpClient,
IFileID directoryOrFileID,
IRemoteFileSystemListener listener,
java.net.URL directoryOrFileURL,
IConnectContext connectContext,
Proxy proxy)
httpClient - http clientdirectoryOrFileID - directory or file idlistener - listenerdirectoryOrFileURL - directory or file idconnectContext - connect contextproxy - proxyprotected IRemoteFileSystemRequest createRemoteFileSystemRequest()
protected void cancel()
protected boolean hasForceNTLMProxyOption()
protected void setupProxies()
protected void cleanUp()
protected void runRequest()
throws java.lang.Exception
java.lang.Exceptionprotected Credentials getFileRequestCredentials()
throws UnsupportedCallbackException,
java.io.IOException
Credentials necessary to retrieve the fileUnsupportedCallbackException - if the callback failsjava.io.IOException - if IO failsprotected void setupAuthentication(java.lang.String urlString)
throws UnsupportedCallbackException,
java.io.IOException
UnsupportedCallbackExceptionjava.io.IOExceptionprotected void setupProxy(Proxy proxy)
protected void clearProxy()