Package best.skn.mail.entities
Class MailSenderRequestBody
java.lang.Object
best.skn.mail.entities.MailSenderRequestBody
- All Implemented Interfaces:
MailSenderRequestBodyInterface
@Component
public class MailSenderRequestBody
extends Object
implements MailSenderRequestBodyInterface
Mail sender request body class for @RequestBody annotated params in controllers
- Since:
- 2024-03-07
- Version:
- 1.2.3
- Author:
- SKN
- Use Case:
- Spring Boot Reactive
- Dedicated To:
- Trina, Logno, Atoshi and My Parents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate String property for containing mail bodyprivate Stringprivate String property for containing the file path to the attachmentprivate Stringprivate String property for containing mail sender email addressprivate Stringprivate String property for containing mail subjectprivate Stringprivate String property for containing the template name for the HTML templateprivate Stringprivate String property for containing mail receiver email address -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()a getter method to get the mail bodya getter method to get the file path to the attachmentgetFrom()A getter method to get the mail sender email addressA getter method to get the mail subjecta getter method to get the template name for the HTML templategetTo()A getter method to get the mail receiver email address
-
Field Details
-
from
private String property for containing mail sender email address- Since:
- v1.0.0
-
to
private String property for containing mail receiver email address- Since:
- v1.0.0
-
subject
private String property for containing mail subject- Since:
- v1.0.0
-
body
private String property for containing mail body- Since:
- v1.0.0
-
filePath
private String property for containing the file path to the attachment- Since:
- v1.0.0
-
templateName
private String property for containing the template name for the HTML template- Since:
- v1.0.0
-
-
Constructor Details
-
MailSenderRequestBody
public MailSenderRequestBody()
-
-
Method Details
-
getFrom
Description copied from interface:MailSenderRequestBodyInterfaceA getter method to get the mail sender email address- Specified by:
getFromin interfaceMailSenderRequestBodyInterface- Returns:
- a String containing the mail sender email address
-
getTo
Description copied from interface:MailSenderRequestBodyInterfaceA getter method to get the mail receiver email address- Specified by:
getToin interfaceMailSenderRequestBodyInterface- Returns:
- a String containing the mail receiver email address
-
getSubject
Description copied from interface:MailSenderRequestBodyInterfaceA getter method to get the mail subject- Specified by:
getSubjectin interfaceMailSenderRequestBodyInterface- Returns:
- a String containing the mail subject
-
getBody
Description copied from interface:MailSenderRequestBodyInterfacea getter method to get the mail body- Specified by:
getBodyin interfaceMailSenderRequestBodyInterface- Returns:
- a String containing the mail body
-
getFilePath
Description copied from interface:MailSenderRequestBodyInterfacea getter method to get the file path to the attachment- Specified by:
getFilePathin interfaceMailSenderRequestBodyInterface- Returns:
- a String containing the file path to the attachment
-
getTemplateName
Description copied from interface:MailSenderRequestBodyInterfacea getter method to get the template name for the HTML template- Specified by:
getTemplateNamein interfaceMailSenderRequestBodyInterface- Returns:
- a String containing the template name for the HTML template
-