|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.IncomingFileTransferRequestJabberImpl
public class IncomingFileTransferRequestJabberImpl
Jabber implementation of the incoming file transfer request
| Constructor Summary | |
|---|---|
IncomingFileTransferRequestJabberImpl(ProtocolProviderServiceJabberImpl jabberProvider,
OperationSetFileTransferJabberImpl fileTransferOpSet,
org.jivesoftware.smackx.filetransfer.FileTransferRequest fileTransferRequest)
Creates an IncomingFileTransferRequestJabberImpl based on the given fileTransferRequest, coming from the Jabber protocol. |
|
| Method Summary | |
|---|---|
FileTransfer |
acceptFile(File file)
Accepts the file and starts the transfer. |
void |
createThumbnailListeners(String cid)
Sets the thumbnail content-ID. |
String |
getFileDescription()
Returns the description of the file corresponding to this request. |
String |
getFileName()
Returns the name of the file corresponding to this request. |
long |
getFileSize()
Returns the size of the file corresponding to this request. |
String |
getID()
The unique id. |
Contact |
getSender()
Returns the Contact making this request. |
byte[] |
getThumbnail()
Returns the thumbnail contained in this request. |
void |
rejectFile()
Refuses the file transfer request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncomingFileTransferRequestJabberImpl(ProtocolProviderServiceJabberImpl jabberProvider,
OperationSetFileTransferJabberImpl fileTransferOpSet,
org.jivesoftware.smackx.filetransfer.FileTransferRequest fileTransferRequest)
jabberProvider - the protocol providerfileTransferOpSet - file transfer operation setfileTransferRequest - the request coming from the Jabber protocol| Method Detail |
|---|
public Contact getSender()
getSender in interface IncomingFileTransferRequestpublic String getFileDescription()
getFileDescription in interface IncomingFileTransferRequestpublic String getFileName()
getFileName in interface IncomingFileTransferRequestpublic long getFileSize()
getFileSize in interface IncomingFileTransferRequestpublic FileTransfer acceptFile(File file)
acceptFile in interface IncomingFileTransferRequestfile - the file to accept
false if the transfer fails,
true otherwisepublic void rejectFile()
rejectFile in interface IncomingFileTransferRequestpublic String getID()
getID in interface IncomingFileTransferRequestpublic byte[] getThumbnail()
getThumbnail in interface IncomingFileTransferRequestpublic void createThumbnailListeners(String cid)
cid - the thumbnail content-ID
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||