public interface IFileTransferRequestEvent extends IFileTransferEvent
IIncomingFileTransferRequestListener| Modifier and Type | Method and Description |
|---|---|
IIncomingFileTransfer |
accept(File localFileToSave)
Accept the file transfer request.
|
IIncomingFileTransfer |
accept(OutputStream outputStream,
IFileTransferListener listener)
Accept the file transfer request.
|
IFileTransferInfo |
getFileTransferInfo()
Get file transfer info associated with this file transfer request even
|
ID |
getRequesterID()
Get ID of remote requester
|
void |
reject()
Reject the file transfer request.
|
boolean |
requestAccepted()
If request was accepted from remote target (via successful call to
accept(File)this method will return true, if rejected or failed
returns false. |
ID getRequesterID()
null.IFileTransferInfo getFileTransferInfo()
null.IIncomingFileTransfer accept(File localFileToSave) throws IncomingFileTransferException
null. Once called
successfully, then requestAccepted() will return true, and
further calls to accept(File) or
accept(OutputStream, IFileTransferListener) will throw
IncomingFileTransferExceptions.localFileToSave - the file on the local file system to receive the remote file.
Must not be null.null.IncomingFileTransferException - if accept message cannot be delivered back to requesterIIncomingFileTransfer accept(OutputStream outputStream, IFileTransferListener listener) throws IncomingFileTransferException
null. Once called
successfully, then requestAccepted() will return true, and
further calls to accept(File) or
accept(OutputStream, IFileTransferListener) will throw
IncomingFileTransferExceptions.outputStream - the output stream to receive the accepted file contents. Must
not be null.listener - for file transfer events during file reception. May be
null.null.IncomingFileTransferException - if accept message cannot be delivered back to requestervoid reject()
boolean requestAccepted()
accept(File)this method will return true, if rejected or failed
returns false.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.