Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.msn
Class IncomingFileTransferRequestMsnImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.msn.IncomingFileTransferRequestMsnImpl
All Implemented Interfaces:
IncomingFileTransferRequest

public class IncomingFileTransferRequestMsnImpl
extends Object
implements IncomingFileTransferRequest

Msn implementation of the incoming file transfer request

Author:
Damian Minkov

Constructor Summary
IncomingFileTransferRequestMsnImpl(OperationSetFileTransferMsnImpl fileTransferOpSet, net.sf.jml.MsnFileTransfer incomingFileTransfer, Contact sender, Date date)
          Constructor
 
Method Summary
 FileTransfer acceptFile(File file)
          Function called to accept and receive the file.
 Date getDate()
           
 String getFileDescription()
          Returns a String that represents the description of the file that is being received.
 String getFileName()
          Returns a String that represents the name of the file that is being received.
 long getFileSize()
          Returns a long that represents the size of the file that is being received.
 String getID()
          Uniquie ID that is identifying the request and then the FileTransfer if the request has been accepted.
 Contact getSender()
          Returns a String that represents the name of the sender of the file being received.
 byte[] getThumbnail()
          Returns the thumbnail contained in this request.
 boolean isRejected()
           
 void rejectFile()
          Function called to refuse the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncomingFileTransferRequestMsnImpl

public IncomingFileTransferRequestMsnImpl(OperationSetFileTransferMsnImpl fileTransferOpSet,
                                          net.sf.jml.MsnFileTransfer incomingFileTransfer,
                                          Contact sender,
                                          Date date)
Constructor

Parameters:
incomingFileTransfer - MSN file transfer request that was received
Method Detail

getID

public String getID()
Uniquie ID that is identifying the request and then the FileTransfer if the request has been accepted.

Specified by:
getID in interface IncomingFileTransferRequest
Returns:
the id.

getFileName

public String getFileName()
Returns a String that represents the name of the file that is being received. If there is no name, returns null.

Specified by:
getFileName in interface IncomingFileTransferRequest
Returns:
a String that represents the name of the file

getFileDescription

public String getFileDescription()
Returns a String that represents the description of the file that is being received. If there is no description available, returns null.

Specified by:
getFileDescription in interface IncomingFileTransferRequest
Returns:
a String that represents the description of the file

getFileSize

public long getFileSize()
Returns a long that represents the size of the file that is being received. If there is no file size available, returns null.

Specified by:
getFileSize in interface IncomingFileTransferRequest
Returns:
a long that represents the size of the file

getSender

public Contact getSender()
Returns a String that represents the name of the sender of the file being received. If there is no sender name available, returns null.

Specified by:
getSender in interface IncomingFileTransferRequest
Returns:
a String that represents the name of the sender

acceptFile

public FileTransfer acceptFile(File file)
Function called to accept and receive the file.

Specified by:
acceptFile in interface IncomingFileTransferRequest
Parameters:
file - the file to accept
Returns:
the FileTransfer object managing the transfer

rejectFile

public void rejectFile()
Function called to refuse the file.

Specified by:
rejectFile in interface IncomingFileTransferRequest

getThumbnail

public byte[] getThumbnail()
Description copied from interface: IncomingFileTransferRequest
Returns the thumbnail contained in this request.

Specified by:
getThumbnail in interface IncomingFileTransferRequest
Returns:
the thumbnail contained in this request

getDate

public Date getDate()
Returns:
the date

isRejected

public boolean isRejected()
Returns:
the rejected

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.