Package org.nekosoft.pdffer.web
Class EmailRequestData
java.lang.Object
org.nekosoft.pdffer.web.AbstractRequestData
org.nekosoft.pdffer.web.EmailRequestData
A DTO for sending HTTP request to download a PDF from PDFfer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the email address to send the PDF to.Gets the filename that will be used for the attachment.Gets the main message of the email that will contain the PDF.Gets the reply-to email address in full RFC 6854 format.Gets the send-from email address in full RFC 6854 format.Gets the subject of the email that will contain the PDF.voidsetEmailTo(List<String> emailTo)Sets the email address to send the PDF to.voidsetFilename(String filename)Sets the filename that will be used for the attachment.voidsetMessage(String message)Sets the main message of the email that will contain the PDF.voidsetReplyTo(String replyTo)Sets the reply-to email address in full RFC 6854 format.voidsetSendFrom(String sendFrom)Sets the send-from email address in full RFC 6854 format.voidsetSubject(String subject)Sets the subject of the email that will contain the PDF.Methods inherited from class org.nekosoft.pdffer.web.AbstractRequestData
getPayload, setPayload
-
Constructor Details
-
EmailRequestData
public EmailRequestData()
-
-
Method Details
-
getEmailTo
Gets the email address to send the PDF to.- Returns:
- the email address
-
setEmailTo
Sets the email address to send the PDF to.- Parameters:
emailTo- the email address
-
getSubject
Gets the subject of the email that will contain the PDF.- Returns:
- the email subject
-
setSubject
Sets the subject of the email that will contain the PDF.- Parameters:
subject- the email subject
-
getFilename
Gets the filename that will be used for the attachment.- Returns:
- the filename
-
getMessage
Gets the main message of the email that will contain the PDF.- Returns:
- the message
-
setMessage
Sets the main message of the email that will contain the PDF.- Parameters:
message- the message
-
setFilename
Sets the filename that will be used for the attachment.- Parameters:
filename- the filename
-
getSendFrom
Gets the send-from email address in full RFC 6854 format. This overrides the setting in the PDFfer configuration.- Returns:
- the send-from email address
-
setSendFrom
Sets the send-from email address in full RFC 6854 format. This overrides the setting in the PDFfer configuration.- Parameters:
sendFrom- the send-from email address
-
getReplyTo
Gets the reply-to email address in full RFC 6854 format. This overrides the setting in the PDFfer configuration.- Returns:
- the reply-to email address
-
setReplyTo
Sets the reply-to email address in full RFC 6854 format. This overrides the setting in the PDFfer configuration.- Parameters:
replyTo- the reply-to email address
-