Class FileTransfer
- java.lang.Object
-
- org.jivesoftware.openfire.filetransfer.FileTransfer
-
- All Implemented Interfaces:
Serializable,Cacheable
public class FileTransfer extends Object implements Cacheable, Serializable
Contains all of the meta information associated with a file transfer.- Author:
- Alexander Wenckus
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCachedSize()Returns the approximate size of the Object in bytes.StringgetFileName()longgetFileSize()StringgetInitiator()StringgetMimeType()FileTransferProgressgetProgress()StringgetSessionID()StringgetTarget()voidsetFileName(String fileName)voidsetFileSize(long fileSize)voidsetInitiator(String initiator)voidsetMimeType(String mimeType)voidsetProgress(FileTransferProgress progress)voidsetSessionID(String sessionID)voidsetTarget(String target)
-
-
-
Method Detail
-
getSessionID
public String getSessionID()
-
setSessionID
public void setSessionID(String sessionID)
-
getInitiator
public String getInitiator()
-
setInitiator
public void setInitiator(String initiator)
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String target)
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
getFileSize
public long getFileSize()
-
setFileSize
public void setFileSize(long fileSize)
-
getMimeType
public String getMimeType()
-
setMimeType
public void setMimeType(String mimeType)
-
getProgress
public FileTransferProgress getProgress()
-
setProgress
public void setProgress(FileTransferProgress progress)
-
getCachedSize
public int getCachedSize()
Description copied from interface:CacheableReturns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.- Specified by:
getCachedSizein interfaceCacheable- Returns:
- the size of the Object in bytes.
-
-