public class HttpClientRetrieveFileTransfer
extends AbstractRetrieveFileTransfer
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_CONNECTION_TIMEOUT |
protected static int |
DEFAULT_READ_TIMEOUT |
protected IFileID |
fileid |
protected static java.lang.String |
HTTP |
protected static int |
HTTP_PORT |
protected static java.lang.String |
HTTPS |
protected static int |
HTTPS_PORT |
protected int |
httpVersion |
protected static int |
MAX_RETRY |
protected JREProxyHelper |
proxyHelper |
protected static java.lang.String[] |
supportedProtocols |
| Constructor and Description |
|---|
HttpClientRetrieveFileTransfer(DefaultHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
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 void |
connectUsingJob(FileTransferJob cjob) |
protected java.lang.String |
createConnectJobName() |
static NTCredentials |
createNTLMCredentials(Proxy p) |
protected boolean |
doPause() |
protected boolean |
doResume() |
protected void |
finalize() |
protected void |
fireConnectStartEvent() |
protected void |
fireReceiveResumedEvent() |
protected void |
fireTransferReceiveDataEvent() |
protected void |
fireTransferReceiveDoneEvent() |
protected void |
fireTransferReceivePausedEvent() |
java.lang.Object |
getAdapter(java.lang.Class adapter) |
protected int |
getConnectTimeout() |
protected Credentials |
getFileRequestCredentials() |
protected static java.lang.String |
getHostFromURL(java.lang.String url) |
ID |
getID() |
protected static java.lang.String |
getNTLMDomainName(Proxy p) |
protected static java.lang.String |
getNTLMUserName(Proxy p) |
protected static int |
getPortFromURL(java.lang.String url) |
java.lang.String |
getRemoteFileName() |
int |
getResponseCode() |
protected void |
getResponseHeaderValues() |
protected void |
getResumeResponseHeaderValues() |
protected int |
getSocketReadTimeout() |
protected void |
hardClose() |
protected boolean |
hasForceNTLMProxyOption() |
protected boolean |
isConnected() |
protected void |
openStreams() |
protected FileTransferJob |
prepareConnectJob(FileTransferJob cjob) |
protected void |
resetDoneAndException() |
void |
setConnectContextForAuthentication(IConnectContext connectContext) |
protected void |
setInputStream(java.io.InputStream ins) |
protected void |
setRequestHeaderValues() |
protected void |
setResumeRequestHeaderValues() |
protected void |
setupAuthentication(java.lang.String urlString) |
protected void |
setupProxies() |
protected void |
setupProxy(Proxy proxy) |
static boolean |
supportsProtocol(java.lang.String protocolString) |
protected static boolean |
urlUsesHttps(java.lang.String url) |
protected java.io.InputStream |
wrapTransferReadInputStream(java.io.InputStream inputStream,
IProgressMonitor monitor) |
protected static final int DEFAULT_CONNECTION_TIMEOUT
protected static final int DEFAULT_READ_TIMEOUT
protected static final int HTTP_PORT
protected static final int HTTPS_PORT
protected static final int MAX_RETRY
protected static final java.lang.String HTTPS
protected static final java.lang.String HTTP
protected static final java.lang.String[] supportedProtocols
protected int httpVersion
protected IFileID fileid
protected JREProxyHelper proxyHelper
public HttpClientRetrieveFileTransfer(DefaultHttpClient httpClient)
httpClient - http clientpublic java.lang.String getRemoteFileName()
public void cancel()
protected void hardClose()
protected Credentials getFileRequestCredentials()
throws UnsupportedCallbackException,
java.io.IOException
UnsupportedCallbackException - if some problemjava.io.IOException - if some problemprotected void setupProxies()
protected void resetDoneAndException()
protected void setupAuthentication(java.lang.String urlString)
throws UnsupportedCallbackException,
java.io.IOException
UnsupportedCallbackExceptionjava.io.IOExceptionprotected void setRequestHeaderValues()
throws InvalidFileRangeSpecificationException
InvalidFileRangeSpecificationExceptionpublic int getResponseCode()
public ID getID()
protected void getResponseHeaderValues()
throws java.io.IOException
java.io.IOExceptionprotected void setInputStream(java.io.InputStream ins)
protected java.io.InputStream wrapTransferReadInputStream(java.io.InputStream inputStream,
IProgressMonitor monitor)
protected boolean hasForceNTLMProxyOption()
protected int getSocketReadTimeout()
protected int getConnectTimeout()
protected void openStreams()
throws IncomingFileTransferException
IncomingFileTransferExceptionpublic void setConnectContextForAuthentication(IConnectContext connectContext)
protected static java.lang.String getHostFromURL(java.lang.String url)
protected static int getPortFromURL(java.lang.String url)
protected static boolean urlUsesHttps(java.lang.String url)
public static boolean supportsProtocol(java.lang.String protocolString)
protected boolean isConnected()
protected boolean doPause()
protected boolean doResume()
protected void setResumeRequestHeaderValues()
throws java.io.IOException
java.io.IOExceptionprotected void getResumeResponseHeaderValues()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object getAdapter(java.lang.Class adapter)
protected void setupProxy(Proxy proxy)
protected void clearProxy()
public static NTCredentials createNTLMCredentials(Proxy p)
p - proxy to create NTCredentials forprotected static java.lang.String getNTLMDomainName(Proxy p)
protected static java.lang.String getNTLMUserName(Proxy p)
protected void fireConnectStartEvent()
protected java.lang.String createConnectJobName()
protected FileTransferJob prepareConnectJob(FileTransferJob cjob)
protected void connectUsingJob(FileTransferJob cjob)
protected void finalize()
throws java.lang.Throwable
java.lang.Throwableprotected void fireReceiveResumedEvent()
protected void fireTransferReceiveDataEvent()
protected void fireTransferReceiveDoneEvent()
protected void fireTransferReceivePausedEvent()