Class PdfferMailerProps

java.lang.Object
org.nekosoft.pdffer.props.PdfferMailerProps

@ConfigurationProperties(prefix="pdffer.mailer") @ConstructorBinding @Validated @ConditionalOnProperty(name="pdffer.mailer.enabled", havingValue="true", matchIfMissing=false) public class PdfferMailerProps extends Object
A Property POJO that reflects the configuration of the mailer bean.
  • Constructor Details

    • PdfferMailerProps

      public PdfferMailerProps(boolean enabled, EmailAddressInfo sendFrom, EmailAddressInfo replyTo, SmtpServerInfo smtp)
      Instantiates a new Pdffer mailer props.
      Parameters:
      sendFrom - the default email address that will be used as the sender for the emails sent by PDFfer
      replyTo - the default email address that will be used as the reply-to header for the emails sent by PDFfer
      smtp - the settings of the SMTP server that will be used to send email messages from PDFfer
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Indicates whether the mailer beans should be present.
      Returns:
      true if the mailer beans should be present
    • getSendFrom

      @Valid public @Valid EmailAddressInfo getSendFrom()
      Gets the default email address that will be used as the sender for the emails sent by PDFfer.
      Returns:
      the default email address that will be used as the sender
    • getReplyTo

      @Valid public @Valid EmailAddressInfo getReplyTo()
      Gets the default email address that will be used as the reply-to header for the emails sent by PDFfer.
      Returns:
      the default email address that will be used as the reply-to header
    • getSmtp

      @NotNull(message="You must provide SMTP server information in order to use the PDFfer Mailer") @Valid public @NotNull(message="You must provide SMTP server information in order to use the PDFfer Mailer") @Valid SmtpServerInfo getSmtp()
      Gets the settings of the SMTP server that will be used to send email messages from PDFfer.
      Returns:
      the settings of the SMTP server