| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer
org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer
public class UrlConnectionRetrieveFileTransfer
| Field Summary | |
|---|---|
protected  int | 
httpVersion
 | 
protected  java.lang.String | 
password
 | 
protected  int | 
responseCode
 | 
protected  java.lang.String | 
responseMessage
 | 
protected  java.net.URLConnection | 
urlConnection
 | 
protected  java.lang.String | 
username
 | 
| Fields inherited from class org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer | 
|---|
buff_length, bytesReceived, CLOSE_TIMEOUT, closeOutputStream, connectContext, DEFAULT_BUF_LENGTH, done, downloadRateBytesPerSecond, exception, fileLength, job, jobLock, lastModifiedTime, listener, localFileContents, options, paused, POLLING_RETRY_ATTEMPTS, proxy, rangeSpecification, READ_TIMEOUT, remoteFileContents, remoteFileID, remoteFileURL, responseHeaders, TIMEOUT_INPUTSTREAM_BUFFER_SIZE, transferStartTime | 
| Constructor Summary | |
|---|---|
UrlConnectionRetrieveFileTransfer()
 | 
|
| Method Summary | |
|---|---|
protected  void | 
connect()
 | 
protected  boolean | 
doPause()
Subclass overridable version of AbstractRetrieveFileTransfer.pause(). | 
protected  boolean | 
doResume()
Subclass overridable version of AbstractRetrieveFileTransfer.resume(). | 
 java.lang.Object | 
getAdapter(java.lang.Class adapter)
 | 
protected  java.lang.String | 
getConnectTimeout()
 | 
 java.lang.String | 
getRemoteFileName()
Obtains the name of the remote file if possible.  | 
 int | 
getResponseCode()
 | 
protected  void | 
getResponseHeaderValues()
 | 
protected  void | 
getResumeResponseHeaderValues()
 | 
protected  void | 
hardClose()
 | 
protected  boolean | 
isConnected()
 | 
protected  void | 
openStreams()
Open incoming and outgoing streams associated with this file transfer.  | 
 void | 
setConnectContextForAuthentication(IConnectContext connectContext)
Set connect context for authentication upon subsequent IRetrieveFileTransferContainerAdapter.sendRetrieveRequest(IFileID, IFileTransferListener, Map). | 
protected  void | 
setRequestHeaderValues()
 | 
protected  void | 
setResumeRequestHeaderValues()
 | 
protected  void | 
setupAuthentication()
 | 
protected  void | 
setupProxy(Proxy proxy2)
Setup ECF proxy.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.net.URLConnection urlConnection
protected int httpVersion
protected int responseCode
protected java.lang.String responseMessage
protected java.lang.String username
protected java.lang.String password
| Constructor Detail | 
|---|
public UrlConnectionRetrieveFileTransfer()
| Method Detail | 
|---|
public java.lang.String getRemoteFileName()
IIncomingFileTransfer
getRemoteFileName in interface IIncomingFileTransfergetRemoteFileName in class AbstractRetrieveFileTransfernull if no such name can be determined.
protected void connect()
                throws java.io.IOException
java.io.IOExceptionprotected boolean isConnected()
protected void setResumeRequestHeaderValues()
                                     throws java.io.IOException
java.io.IOException
protected void setRequestHeaderValues()
                               throws InvalidFileRangeSpecificationException
InvalidFileRangeSpecificationExceptionpublic int getResponseCode()
protected void getResponseHeaderValues()
                                throws java.io.IOException
java.io.IOException
protected void getResumeResponseHeaderValues()
                                      throws java.io.IOException
java.io.IOExceptionprotected void setupProxy(Proxy proxy2)
AbstractRetrieveFileTransferAbstractRetrieveFileTransfer.sendRetrieveRequest(IFileID, IFileTransferListener, Map) and
 AbstractRetrieveFileTransfer.sendRetrieveRequest(IFileID, IFileRangeSpecification, IFileTransferListener, Map)
 , prior to the actual call to AbstractRetrieveFileTransfer.openStreams().
setupProxy in class AbstractRetrieveFileTransferproxy2 - the ECF proxy to setup
protected void setupAuthentication()
                            throws java.io.IOException,
                                   UnsupportedCallbackException
java.io.IOException
UnsupportedCallbackExceptionpublic void setConnectContextForAuthentication(IConnectContext connectContext)
IRetrieveFileTransferContainerAdapterIRetrieveFileTransferContainerAdapter.sendRetrieveRequest(IFileID, IFileTransferListener, Map). This
 method should be called with a non-null connectContext in order to allow
 authentication to occur during call to
 IRetrieveFileTransferContainerAdapter.sendRetrieveRequest(IFileID, IFileTransferListener, Map).
setConnectContextForAuthentication in interface IRetrieveFileTransferContainerAdaptersetConnectContextForAuthentication in class AbstractRetrieveFileTransferconnectContext - the connect context to use for authenticating during
            subsequent call to
            IRetrieveFileTransferContainerAdapter.sendRetrieveRequest(IFileID, IFileTransferListener, Map).
            If null, then no authentication will be
            attempted.
protected void openStreams()
                    throws IncomingFileTransferException
AbstractRetrieveFileTransferremoteFileContents and localFileContent
 must be non-null after successful completion of the
 implementation of this method.
openStreams in class AbstractRetrieveFileTransferIncomingFileTransferExceptionprotected void hardClose()
hardClose in class AbstractRetrieveFileTransferprotected boolean doPause()
AbstractRetrieveFileTransferAbstractRetrieveFileTransfer.pause(). Subclasses must provide
 an implementation of this method to support IFileTransferPausable
 .
doPause in class AbstractRetrieveFileTransferfalse otherwise.protected boolean doResume()
AbstractRetrieveFileTransferAbstractRetrieveFileTransfer.resume(). Subclasses must
 provide an implementation of this method to support
 IFileTransferPausable.
doResume in class AbstractRetrieveFileTransferfalse otherwise.public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class AbstractRetrieveFileTransferprotected java.lang.String getConnectTimeout()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||