public class NosTransferInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NosTransferInfo.TransferType |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
extension
File extension
|
protected java.lang.String |
md5
MD5 value of the file content
|
protected java.lang.String |
path
File path
|
protected long |
size
File size
|
protected NosTransferStatus |
status
File transfer status
|
protected NosTransferInfo.TransferType |
transferType
Upload or download
|
protected java.lang.String |
url
Download URL
|
Constructor and Description |
---|
NosTransferInfo() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExtension()
Get the file extension
|
java.lang.String |
getKey()
Get the unique identifier for the current file transfer.
|
java.lang.String |
getMd5()
Get the MD5 value of the file content
|
java.lang.String |
getPath()
Get the local file path
|
long |
getSize()
Get the file size.
|
NosTransferStatus |
getStatus()
Get the current transfer status of a file
|
NosTransferInfo.TransferType |
getTransferType()
Get the transfer type, upload or download
|
java.lang.String |
getUrl()
Get the download URL of a file.
|
void |
setExtension(java.lang.String extension)
Set a file extension
|
void |
setMd5(java.lang.String md5)
Set the MD5 value of the content
|
void |
setPath(java.lang.String path)
Set the file path
|
void |
setSize(long size)
Set the file size.
|
void |
setStatus(NosTransferStatus status)
Set the current transfer status of a file
|
void |
setTransferType(NosTransferInfo.TransferType transferType)
Set a transfer type
|
void |
setUrl(java.lang.String url) |
protected NosTransferInfo.TransferType transferType
protected java.lang.String path
protected long size
protected java.lang.String md5
protected java.lang.String url
protected java.lang.String extension
protected NosTransferStatus status
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The file pathpublic long getSize()
public void setSize(long size)
size
- The file sizepublic java.lang.String getMd5()
public void setMd5(java.lang.String md5)
md5
- MD5 valuepublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension
- File extensionpublic NosTransferStatus getStatus()
public void setStatus(NosTransferStatus status)
status
- Enumeration of the transfer statuspublic NosTransferInfo.TransferType getTransferType()
public void setTransferType(NosTransferInfo.TransferType transferType)
transferType
- Upload or downloadpublic java.lang.String getKey()