public class SendMailOperation extends AbstractAnnotatedMailOperation
wsdlOperation
Constructor and Description |
---|
SendMailOperation(QName wsdlOperationName,
MailSubjectPattern mailSubject,
MailBodyPattern mailBody,
MailAddressesPattern mailTo,
List<MailHeader> mailHeaders,
int mailEnableDSN,
int mailDSNContent,
org.ow2.petals.component.framework.api.configuration.SuConfigurationParameters extensions) |
Modifier and Type | Method and Description |
---|---|
MailBodyPattern |
getMailBody() |
int |
getMailDSNContent() |
int |
getMailEnableDSN() |
List<MailHeader> |
getMailHeaders() |
MailSubjectPattern |
getMailSubject() |
MailAddressesPattern |
getMailTo() |
void |
verifyAnnotationCoherence()
Verify that annotation read from the WSDL are valid for the operation, otherwise the exception
InvalidAnnotationForOperationException is thrown. |
getWsdlOperation
public SendMailOperation(QName wsdlOperationName, MailSubjectPattern mailSubject, MailBodyPattern mailBody, MailAddressesPattern mailTo, List<MailHeader> mailHeaders, int mailEnableDSN, int mailDSNContent, org.ow2.petals.component.framework.api.configuration.SuConfigurationParameters extensions)
wsdlOperationName
- The WSDL operation containing the current annotationsmailSubject
- The mail subject associated to the mail to send. Can be null
.mailBody
- The mail body associated to the mail to send. Not null
and not empty.mailTo
- The mail addresses to which the mail will be sent. Can be null
.mailHeaders
- The mail headers associated to the mail to send. Not null
.mailEnableDSN
- Flag to enable mail delivery status notificationmailDSNContent
- Flag defining the content of the Delivery Status Notificationextensions
- BC Mail extensions of the JBI descriptor of the current provider in which this operation takes place.
Not null
.public void verifyAnnotationCoherence() throws InvalidAnnotationForOperationException
InvalidAnnotationForOperationException
is thrown.
During coherence checking, we can update not initialized field with the one available in SU JBI descriptor
extensionsInvalidAnnotationForOperationException
- The annotated operation is incoherent.public MailSubjectPattern getMailSubject()
null
if verifyAnnotationCoherence()
was
previously called.public MailBodyPattern getMailBody()
null
if verifyAnnotationCoherence()
was
previously called.public MailAddressesPattern getMailTo()
null
if verifyAnnotationCoherence()
was
previously called.public List<MailHeader> getMailHeaders()
null
if verifyAnnotationCoherence()
was
previously called.public int getMailEnableDSN()
public int getMailDSNContent()
Copyright © 2005-2018 Linagora. All Rights Reserved.