|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.provider.filetransfer.outgoing.MultiProtocolOutgoingAdapter
public class MultiProtocolOutgoingAdapter
Multi protocol handler for outgoing file transfer. Multiplexes between Apache httpclient 3.0.1-based file retriever and the URLConnection-based file retriever.
| Constructor Summary | |
|---|---|
MultiProtocolOutgoingAdapter()
|
|
| Method Summary | |
|---|---|
void |
addListener(IIncomingFileTransferRequestListener listener)
Add incoming file transfer listener. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
Namespace |
getOutgoingNamespace()
Get namespace for outgoing file transfer. |
boolean |
removeListener(IIncomingFileTransferRequestListener listener)
Remove incoming file transfer listener |
void |
sendOutgoingRequest(IFileID targetID,
java.io.File outgoingFile,
IFileTransferListener transferListener,
java.util.Map options)
Send request for outgoing file transfer. |
void |
sendOutgoingRequest(IFileID targetID,
IFileTransferInfo localFileToSend,
IFileTransferListener transferListener,
java.util.Map options)
Send request for outgoing file transfer. |
void |
setConnectContextForAuthentication(IConnectContext connectContext)
Set connect context for authentication upon subsequent ISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map). |
void |
setProxy(Proxy proxy)
Set proxy for use upon subsequent ISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiProtocolOutgoingAdapter()
| Method Detail |
|---|
public Namespace getOutgoingNamespace()
ISendFileTransferContainerAdapter
getOutgoingNamespace in interface ISendFileTransferContainerAdapternull.public void setConnectContextForAuthentication(IConnectContext connectContext)
ISendFileTransferContainerAdapterISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map). This
method should be called with a non-null connectContext in order to allow
authentication to occur during call to
ISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map).
setConnectContextForAuthentication in interface ISendFileTransferContainerAdapterconnectContext - the connect context to use for authenticating during
subsequent call to
ISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map).
If null, then no authentication will be
attempted.public void setProxy(Proxy proxy)
ISendFileTransferContainerAdapterISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map). This
method should be called with a non-null proxy to allow the given proxy to
be used in subsequent calls to
ISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map).
setProxy in interface ISendFileTransferContainerAdapterproxy - the proxy to use for subsequent calls to
ISendFileTransferContainerAdapter.sendOutgoingRequest(IFileID, IFileTransferInfo, IFileTransferListener, Map).
If null, then no proxy will be used.
public void sendOutgoingRequest(IFileID targetID,
java.io.File outgoingFile,
IFileTransferListener transferListener,
java.util.Map options)
throws SendFileTransferException
ISendFileTransferContainerAdapter
sendOutgoingRequest in interface ISendFileTransferContainerAdaptertargetID - the ID of the remote to receive the file transfer request.
Must not be null.outgoingFile - the File for the local file to send. Must not be
null.transferListener - a IFileTransferListener for responding to file
transfer events. Must not be null. If the
target receiver responds then an IOutgoingFileTransfer will be
delivered to the listeneroptions - a Map of options associated with sendOutgoingRequest. The
particular name/value pairs will be unique to the individual
providers. May be null.
SendFileTransferException - if the provider is not connected or is not in the correct
state for initiating file transferpublic void addListener(IIncomingFileTransferRequestListener listener)
ISendFileTransferContainerAdapter
addListener in interface ISendFileTransferContainerAdapterlistener - to receive incoming file transfer request events. Must not be
null.public boolean removeListener(IIncomingFileTransferRequestListener listener)
ISendFileTransferContainerAdapter
removeListener in interface ISendFileTransferContainerAdapterlistener - the listener to remove. Must not be null.
public void sendOutgoingRequest(IFileID targetID,
IFileTransferInfo localFileToSend,
IFileTransferListener transferListener,
java.util.Map options)
throws SendFileTransferException
ISendFileTransferContainerAdapter
sendOutgoingRequest in interface ISendFileTransferContainerAdaptertargetID - the ID of the remote to receive the file transfer request.
Must not be should not be null.localFileToSend - the IFileTransferInfo for the local file to send. Must
not be should not be null.transferListener - a IFileTransferListener for responding to file
transfer events. Must not be should not be null..
If the target receiver responds then an
IOutgoingFileTransferResponseEvent will be delivered
to the listeneroptions - a Map of options associated with sendOutgoingRequest. The
particular name/value pairs will be unique to the individual
providers. May be should not be null..
SendFileTransferException - if the provider is not connected or is not in the correct
state for initiating file transferpublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||