public abstract class AbstractUrlConnectionOutgoingFileTransfer extends AbstractOutgoingFileTransfer implements ISendFileTransfer
Modifier and Type | Field and Description |
---|---|
protected int |
httpVersion |
protected long |
lastModifiedTime |
protected int |
responseCode |
protected java.lang.String |
responseMessage |
protected java.net.URLConnection |
urlConnection |
buff_length, bytesSent, connectContext, DEFAULT_BUF_LENGTH, done, exception, fileTransferInfo, job, listener, localFileContents, options, proxy, remoteFileContents, remoteFileID, remoteFileURL
Constructor and Description |
---|
AbstractUrlConnectionOutgoingFileTransfer() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
connect()
Setup and connect.
|
int |
getResponseCode() |
protected void |
hardClose() |
protected boolean |
isConnected() |
protected void |
openStreams()
Open incoming and outgoing streams associated with this file transfer.
|
protected void |
setupProxy(Proxy proxy2) |
addListener, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, getOutgoingNamespace, removeListener, sendOutgoingRequest, sendOutgoingRequest, setConnectContextForAuthentication, setProxy
protected java.net.URLConnection urlConnection
protected long lastModifiedTime
protected int httpVersion
protected int responseCode
protected java.lang.String responseMessage
public AbstractUrlConnectionOutgoingFileTransfer()
protected abstract void connect() throws java.io.IOException
urlConnection
member variable should be non-null, and ready to have it's
getInputStream() method called.java.io.IOException
- if the connection cannot be opened.protected boolean isConnected()
public int getResponseCode()
protected void setupProxy(Proxy proxy2)
setupProxy
in class AbstractOutgoingFileTransfer
proxy2
- the ECF proxy to setupprotected void openStreams() throws SendFileTransferException
AbstractOutgoingFileTransfer
remoteFileContents
and localFileContent
must be non-null
after successful completion of the
implementation of this method.openStreams
in class AbstractOutgoingFileTransfer
SendFileTransferException
- if some problemprotected void hardClose()
hardClose
in class AbstractOutgoingFileTransfer