public class FileTransferUploadEvent extends FileTransferEvent
Constructor and Description |
---|
FileTransferUploadEvent(FileTransfer source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time)
Creates a new event instance.
|
FileTransferUploadEvent(FileTransfer source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(FileTransferListener listener)
Accepts event via FileTransferListener.
|
java.lang.Object |
attributeFor(java.lang.String name) |
java.lang.Object |
attributeFor(java.lang.String name,
java.lang.Object defaultValue) |
java.lang.String |
getFilename()
Gets name of file uploaded.
|
java.lang.String |
getLocalPath()
Returns uploaded file local path.
|
java.lang.String |
getPath()
Gets remote path the file was uploaded to.
|
long |
getSize()
Gets total bytes transmitted.
|
long |
getTime()
Gets total time to transfer file measured in milliseconds.
|
java.lang.String |
toString() |
public FileTransferUploadEvent(FileTransfer source, java.lang.String filename, java.lang.String path, java.lang.String localPath, long size, long time, java.util.Map<java.lang.String,java.lang.Object> attributes)
source
- the source of the eventfilename
- the file uploadedpath
- the remote path the file was uploaded tolocalPath
- the local file pathsize
- the size of file in bytestime
- the time to transfer file in millisecondsattributes
- transfer-specific attributespublic FileTransferUploadEvent(FileTransfer source, java.lang.String filename, java.lang.String path, java.lang.String localPath, long size, long time)
source
- the source of the eventfilename
- the file uploadedpath
- the remote path the file was uploaded tolocalPath
- the local file pathsize
- the size of file in bytestime
- the time to transfer file in millisecondspublic java.lang.String getFilename()
public java.lang.String getPath()
public java.lang.String getLocalPath()
public long getSize()
public long getTime()
public java.lang.Object attributeFor(java.lang.String name)
public java.lang.Object attributeFor(java.lang.String name, java.lang.Object defaultValue)
public void accept(FileTransferListener listener)
accept
in class FileTransferEvent
listener
- the listener which receives eventpublic java.lang.String toString()
toString
in class java.util.EventObject
Copyright © JSCAPE LLC. 1999-2023. All Rights Reserved