public class Transfer
extends java.lang.Object
| Constructor and Description |
|---|
Transfer()
Creates a new Transfer instance with the following transfer default values:
showFilenames = true downloadNotification = true sendMails = true recipientLanguage = "en" |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(TransferFile transferFile)
Adds a transfer file to this transfer.
|
void |
addRecipient(Recipient recipient)
Adds a recipient to the recipients list.
|
void |
addRecipients(java.util.List<Recipient> recipients)
Adds the given list of recipients to the transfer's recipient list.
|
long |
calculateTransferSize()
Calculates the size of the transfer, based on the given transfer files.
|
java.lang.String |
getClassificationId()
Returns the ID of the classification.
|
java.lang.String |
getConfidentialMessage()
Returns the confidential message text for this transfer.
|
java.lang.String |
getConfidentialSubject()
Returns the confidentialSubject text for this transfer.
|
java.time.LocalDate |
getExpirationDate()
Returns the expiration date of the transfer..
|
java.lang.String |
getMessage()
Returns the message text for this transfer.
|
java.lang.String |
getPassword()
Returns the transfer password.
|
PasswordMode |
getPasswordMode()
Returns the
PasswordMode for the transfer. |
java.util.Locale |
getRecipientLanguage()
Returns the language used for recipient notifications.
|
java.util.List<Recipient> |
getRecipients()
Returns the recipients of the transfer, specified as
List of Recipients. |
java.lang.String |
getSenderName()
Returns the name of the sender.
|
java.lang.String |
getSenderPhone()
Returns the telephone number of the sender.
|
java.lang.String |
getSubject()
Returns the subject text for this transfer.
|
java.lang.String |
getTrackingId()
Returns the tracking ID, which identifies the transfer on the server.
|
java.util.List<TransferFile> |
getTransferFiles()
Returns the files of the transfer, specified as
List of TransferFiles. |
boolean |
isInformAboutDownload()
Returns whether a notification about the retrieval of a transfer file will be sent.
|
boolean |
isNotifyRecipients()
Returns whether the recipients will be notified after the upload.
|
boolean |
isNotifySender()
Returns whether the sender will be notified after the upload.
|
boolean |
isSendDownloadSummary()
Returns whether a download summary will be sent to the sender once the transfer has expired.
|
boolean |
isSendMails()
Returns whether the server will send emails or not.
|
boolean |
isShowFilenames()
Returns whether file names are being exposed or not.
|
void |
setClassificationId(java.lang.String classificationId)
Sets the ID of the classification.
|
void |
setConfidentialMessage(java.io.InputStream messageStream)
Sets the confidential message text for this transfer from the given input stream.
|
void |
setConfidentialMessage(java.lang.String message)
Sets the confidential message for this transfer.
|
void |
setConfidentialSubject(java.io.InputStream subjectStream)
Sets the confidential subject text for this transfer from the given input stream.
|
void |
setConfidentialSubject(java.lang.String subject)
Sets the confidential subject text for this transfer.
|
void |
setExpirationDate(java.time.LocalDate expirationDate)
Sets the expiration date of the transfer.
|
void |
setInformAboutDownload(boolean value)
Sets the download notification option.
|
void |
setMessage(java.io.InputStream messageStream)
Sets the message text for this transfer from the given input stream.
|
void |
setMessage(java.lang.String message)
Sets the message for this transfer.
|
void |
setNotifyRecipients(boolean notifyRecipients)
Sets whether the recipients will be notified after the upload.
|
void |
setNotifySender(boolean notifySender)
Sets whether the sender will be notified after the upload.
|
void |
setPassword(java.lang.String password)
Sets the transfer password.
|
void |
setPasswordMode(PasswordMode passwordMode)
Sets the
PasswordMode for the transfer. |
void |
setRecipientLanguage(java.util.Locale language)
Sets the language used for recipient notifications.
|
void |
setRecipients(java.util.List<Recipient> recipients)
Sets the recipients of the transfer, specified as
List of Recipients. |
void |
setSendDownloadSummary(boolean sendDownloadSummary)
Sets whether a download summary should be sent to the sender once the transfer has expired.
|
void |
setSenderName(java.lang.String value)
Sets the name of the sender.
|
void |
setSenderPhone(java.lang.String phone)
Sets the telephone number of the sender.
|
void |
setSendMails(boolean value)
Sets whether the server will send emails or not.
|
void |
setShowFilenames(boolean value)
Sets whether file names are being exposed or not.
|
void |
setSubject(java.io.InputStream subjectStream)
Sets the subject text for this transfer from the given input stream.
|
void |
setSubject(java.lang.String subject)
Sets the subject text for this transfer.
|
void |
setTransferFiles(java.util.List<TransferFile> transferFiles)
Sets the files of the transfer, specified as
List of TransferFiles. |
public Transfer()
public long calculateTransferSize()
throws java.io.IOException
java.io.IOException - If one of the transfer files cannot be read.public void setExpirationDate(java.time.LocalDate expirationDate)
expirationDate - The expiration date.public java.time.LocalDate getExpirationDate()
public void setSenderName(java.lang.String value)
value - The sender name.public java.lang.String getSenderName()
public void setSenderPhone(java.lang.String phone)
phone - The telephone number of the sender.public java.lang.String getSenderPhone()
public void setMessage(java.lang.String message)
message - The message text.public void setMessage(java.io.InputStream messageStream)
throws java.io.IOException
messageStream - The input stream containing the text.java.io.IOException - If the input stream could not be read.public java.lang.String getMessage()
public void setSubject(java.lang.String subject)
subject - The subject text.public void setSubject(java.io.InputStream subjectStream)
throws java.io.IOException
subjectStream - The input stream containing the text.java.io.IOException - If the input stream could not be read.public java.lang.String getSubject()
public void setConfidentialMessage(java.lang.String message)
message - The confidential message text.public void setConfidentialMessage(java.io.InputStream messageStream)
throws java.io.IOException
messageStream - The input stream containing the text.java.io.IOException - If the input stream could not be read.public java.lang.String getConfidentialMessage()
public void setConfidentialSubject(java.lang.String subject)
subject - The confidential subject text.public void setConfidentialSubject(java.io.InputStream subjectStream)
throws java.io.IOException
subjectStream - The input stream containing the text.java.io.IOException - If the input stream could not be read.public java.lang.String getConfidentialSubject()
public boolean isShowFilenames()
true, if filenames will be shown in the email notifications, false otherwise.public void setShowFilenames(boolean value)
value - true, if filenames are to be shown the email notifications, false otherwise.public boolean isNotifySender()
isSendMails() is false.true if the sender will be notified when a transfer has been made available to the recipients,
false otherwise.public void setNotifySender(boolean notifySender)
isSendMails() is false.notifySender - true if the sender should be notified when a transfer has been made available to the recipients,
false otherwise.public boolean isNotifyRecipients()
isSendMails() is false.true if the recipients will be notified when a transfer has been made available, false otherwise.public void setNotifyRecipients(boolean notifyRecipients)
isSendMails() is false.notifyRecipients - true if the recipients should be notified when a transfer has been made available, false otherwise.public boolean isInformAboutDownload()
isSendMails() is false.true, if the sender of the transfer will be informed when a download of a file has started, false otherwise.public void setInformAboutDownload(boolean value)
isSendMails() is false.value - true, if sender should be notified of a download, false otherwise.public boolean isSendDownloadSummary()
true if the download summary will be sent, false otherwise.public void setSendDownloadSummary(boolean sendDownloadSummary)
sendDownloadSummary - true if the download summary will be sent, false otherwise.public boolean isSendMails()
true, if the server will send any emails for this transfer at all, false otherwise.public void setSendMails(boolean value)
value - true, if the server should send any emails for this transfer at all, false otherwise.public java.util.List<Recipient> getRecipients()
List of Recipients.null.public void setRecipients(java.util.List<Recipient> recipients)
List of Recipients.
All elements of this list are added to the recipient list.recipients - The new list of recipients for this transfer.public void addRecipient(Recipient recipient)
recipient - The Recipient to add.public void addRecipients(java.util.List<Recipient> recipients)
recipients - The list of Recipients to add.public java.util.List<TransferFile> getTransferFiles()
List of TransferFiles.null.public void setTransferFiles(java.util.List<TransferFile> transferFiles)
List of TransferFiles.
All elements of this list are added to the file list.transferFiles - The new list of files for this transfer.public void addFile(TransferFile transferFile)
transferFile - The file to add.public void setPassword(java.lang.String password)
password - The transfer password.public java.lang.String getPassword()
getPasswordMode() has been set to PasswordMode.NONE before starting a transfer,
it will be set to the internal encryption password that is part of the download URLs.public PasswordMode getPasswordMode()
PasswordMode for the transfer.PasswordMode.public void setPasswordMode(PasswordMode passwordMode)
PasswordMode for the transfer.passwordMode - the PasswordMode.public void setRecipientLanguage(java.util.Locale language)
language - The language, as Locale.public java.util.Locale getRecipientLanguage()
Locale.public java.lang.String getClassificationId()
public void setClassificationId(java.lang.String classificationId)
classificationId - The ID of the classification.public java.lang.String getTrackingId()
IClient.