|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileTransferRequestEvent
Event to represent remote file transfer requests. Events implementing this
interface are delivered to IIncomingFileTransferRequestListener
IIncomingFileTransferRequestListener.handleFileTransferRequest(IFileTransferRequestEvent)
Method Summary | |
---|---|
IIncomingFileTransfer |
accept(java.io.File localFileToSave)
Accept the file transfer request. |
IIncomingFileTransfer |
accept(java.io.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. |
Method Detail |
---|
ID getRequesterID()
null
.IFileTransferInfo getFileTransferInfo()
null
.IIncomingFileTransfer accept(java.io.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(java.io.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |