public class FileTransferRequest extends Object
Constructor and Description |
---|
FileTransferRequest(FileTransferManager manager,
StreamInitiation si)
A receive request is constructed from the Stream Initiation request
received from the initiator.
|
Modifier and Type | Method and Description |
---|---|
IncomingFileTransfer |
accept()
Accepts this file transfer and creates the incoming file transfer.
|
String |
getDescription()
Returns the description of the file provided by the requester.
|
String |
getFileName()
Returns the name of the file.
|
long |
getFileSize()
Returns the size in bytes of the file.
|
String |
getMimeType()
Returns the mime-type of the file.
|
org.jxmpp.jid.Jid |
getRequestor()
Returns the fully-qualified jabber ID of the user that requested this
file transfer.
|
String |
getStreamID()
Returns the stream ID that uniquely identifies this file transfer.
|
protected StreamInitiation |
getStreamInitiation()
Returns the stream initiation stanza that was sent by the requester which
contains the parameters of the file transfer being transfer and also the
methods available to transfer the file.
|
void |
reject()
Rejects the file transfer request.
|
public FileTransferRequest(FileTransferManager manager, StreamInitiation si)
manager
- The manager handling this file transfersi
- The Stream initiation received from the initiator.public String getFileName()
public long getFileSize()
public String getDescription()
public String getMimeType()
public org.jxmpp.jid.Jid getRequestor()
public String getStreamID()
protected StreamInitiation getStreamInitiation()
public IncomingFileTransfer accept()
public void reject() throws SmackException.NotConnectedException, InterruptedException