Class PdfferMailerController

java.lang.Object
org.nekosoft.pdffer.web.PdfferMailerController

@RestController @ConditionalOnWebApplication @ConditionalOnClass(name="javax.mail.internet.InternetAddress") @ConditionalOnBean(type={"org.nekosoft.pdffer.mail.PdfferMailerBean","org.nekosoft.pdffer.PdfferProducerBean"}) @ConditionalOnProperty(name="pdffer.mailer.controller.enable", havingValue="true", matchIfMissing=false) @RequestMapping("${pdffer.mailer.controller.base_uri:${pdffer.web.controller.base_uri:pdffer}}") public class PdfferMailerController extends Object
The type Pdffer mailer controller.
  • Constructor Details

    • PdfferMailerController

      public PdfferMailerController(PdfferProducerBean pdfferProducer, PdfferMailerBean pdfferMailer)
      Instantiates a new Pdffer mailer controller.
      Parameters:
      pdfferProducer - the pdffer producer
      pdfferMailer - the pdffer mailer
  • Method Details

    • email

      @PostMapping("${pdffer.web.controller.email_uri:mail}/{templateId}") public void email(@PathVariable String templateId, @RequestBody EmailRequestData requestData, javax.servlet.http.HttpServletResponse response)
      Email.
      Parameters:
      templateId - the template id
      requestData - the request data
      response - the response