Package org.nekosoft.pdffer.web
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 Summary
ConstructorDescriptionPdfferMailerController(PdfferProducerBean pdfferProducer, PdfferMailerBean pdfferMailer)
Instantiates a new Pdffer mailer controller. -
Method Summary
Modifier and TypeMethodDescriptionvoid
email(String templateId, EmailRequestData requestData, javax.servlet.http.HttpServletResponse response)
Email.
-
Constructor Details
-
PdfferMailerController
Instantiates a new Pdffer mailer controller.- Parameters:
pdfferProducer
- the pdffer producerpdfferMailer
- 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 idrequestData
- the request dataresponse
- the response
-