Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class FileTransferRequestEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.FileTransferRequestEvent
All Implemented Interfaces:
Serializable

public class FileTransferRequestEvent
extends EventObject

The FileTransferRequestEvent indicates the reception of a file transfer request.

Author:
Nicolas Riegel, Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FileTransferRequestEvent(OperationSetFileTransfer fileTransferOpSet, IncomingFileTransferRequest request, Date timestamp)
          Creates a FileTransferRequestEvent representing reception of an incoming file transfer request.
 
Method Summary
 OperationSetFileTransfer getFileTransferOperationSet()
          Returns the OperationSetFileTransfer, where this event initially occurred.
 IncomingFileTransferRequest getRequest()
          Returns the incoming file transfer request that triggered this event.
 Date getTimestamp()
          A timestamp indicating the exact date when the event occurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTransferRequestEvent

public FileTransferRequestEvent(OperationSetFileTransfer fileTransferOpSet,
                                IncomingFileTransferRequest request,
                                Date timestamp)
Creates a FileTransferRequestEvent representing reception of an incoming file transfer request.

Parameters:
fileTransferOpSet - the operation set, where this event initially occurred
request - the IncomingFileTranferRequest whose reception this event represents.
timestamp - the timestamp indicating the exact date when the event occurred
Method Detail

getFileTransferOperationSet

public OperationSetFileTransfer getFileTransferOperationSet()
Returns the OperationSetFileTransfer, where this event initially occurred.

Returns:
the OperationSetFileTransfer, where this event initially occurred

getRequest

public IncomingFileTransferRequest getRequest()
Returns the incoming file transfer request that triggered this event.

Returns:
the IncomingFileTransferRequest that triggered this event.

getTimestamp

public Date getTimestamp()
A timestamp indicating the exact date when the event occurred.

Returns:
a Date indicating when the event occurred.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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