Class AbstractUrlConnectionOutgoingFileTransfer
- java.lang.Object
- 
- org.eclipse.ecf.provider.filetransfer.outgoing.AbstractOutgoingFileTransfer
- 
- org.eclipse.ecf.provider.filetransfer.outgoing.AbstractUrlConnectionOutgoingFileTransfer
 
 
- 
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable,- IIdentifiable,- IFileTransfer,- IOutgoingFileTransfer,- ISendFileTransferContainerAdapter,- ISendFileTransfer
 
 public abstract class AbstractUrlConnectionOutgoingFileTransfer extends AbstractOutgoingFileTransfer implements ISendFileTransfer 
- 
- 
Field SummaryFields Modifier and Type Field Description protected inthttpVersionprotected longlastModifiedTimeprotected intresponseCodeprotected StringresponseMessageprotected URLConnectionurlConnection- 
Fields inherited from class org.eclipse.ecf.provider.filetransfer.outgoing.AbstractOutgoingFileTransferbuff_length, bytesSent, connectContext, DEFAULT_BUF_LENGTH, done, exception, fileTransferInfo, job, listener, localFileContents, options, proxy, remoteFileContents, remoteFileID, remoteFileURL
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractUrlConnectionOutgoingFileTransfer()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidconnect()Setup and connect.intgetResponseCode()protected voidhardClose()protected booleanisConnected()protected voidopenStreams()Open incoming and outgoing streams associated with this file transfer.protected voidsetupProxy(Proxy proxy2)- 
Methods inherited from class org.eclipse.ecf.provider.filetransfer.outgoing.AbstractOutgoingFileTransferaddListener, cancel, createJobName, fireSendStartEvent, fireTransferSendDataEvent, fireTransferSendDoneEvent, getAdapter, getBytesSent, getException, getFileLength, getFileTransferInfo, getFinalStatus, getID, getListener, getOptions, getOutgoingNamespace, getPercentComplete, getRemoteFileURL, isDone, removeListener, selectProxyFromProxies, sendOutgoingRequest, sendOutgoingRequest, setConnectContextForAuthentication, setInputStream, setOutputStream, setProxy, setupAndScheduleJob, setupProxies
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.ecf.filetransfer.ISendFileTransferContainerAdapteraddListener, getOutgoingNamespace, removeListener, sendOutgoingRequest, sendOutgoingRequest, setConnectContextForAuthentication, setProxy
 
- 
 
- 
- 
- 
Field Detail- 
urlConnectionprotected URLConnection urlConnection 
 - 
lastModifiedTimeprotected long lastModifiedTime 
 - 
httpVersionprotected int httpVersion 
 - 
responseCodeprotected int responseCode 
 - 
responseMessageprotected String responseMessage 
 
- 
 - 
Method Detail- 
connectprotected abstract void connect() throws IOExceptionSetup and connect. Subclasses should override as appropriate. After calling is complete, theurlConnectionmember variable should be non-null, and ready to have it's getInputStream() method called.- Throws:
- IOException- if the connection cannot be opened.
 
 - 
isConnectedprotected boolean isConnected() 
 - 
getResponseCodepublic int getResponseCode() 
 - 
setupProxyprotected void setupProxy(Proxy proxy2) - Specified by:
- setupProxyin class- AbstractOutgoingFileTransfer
- Parameters:
- proxy2- the ECF proxy to setup
 
 - 
openStreamsprotected void openStreams() throws SendFileTransferExceptionDescription copied from class:AbstractOutgoingFileTransferOpen incoming and outgoing streams associated with this file transfer. Subclasses must implement this method to open input and output streams. TheremoteFileContentsandlocalFileContentmust be non-nullafter successful completion of the implementation of this method.- Specified by:
- openStreamsin class- AbstractOutgoingFileTransfer
- Throws:
- SendFileTransferException- if some problem
 
 - 
hardCloseprotected void hardClose() - Overrides:
- hardClosein class- AbstractOutgoingFileTransfer
 
 
- 
 
-