public interface MailFactoryIF
Modifier and Type | Method and Description |
---|---|
javax.mail.Message |
createMessage(XSDContextIF ctx,
Mail mail)
Create a predefined message defined XML section.
|
javax.mail.Message.RecipientType |
createRecipientType(java.lang.String type)
Create a recipient type object from a recipient type string.
|
javax.mail.Session |
createSession(java.util.Properties properties,
java.lang.String host,
java.lang.String protocol,
java.lang.String port,
java.lang.String user,
java.lang.String password,
java.lang.String from,
boolean authentication,
boolean debug)
Create a mail session.
|
javax.mail.Message createMessage(XSDContextIF ctx, Mail mail) throws javax.mail.MessagingException, javax.mail.internet.AddressException
ctx
- the MoMa context.mail
- the xml definition of the mailjavax.mail.MessagingException
javax.mail.internet.AddressException
javax.mail.Session createSession(java.util.Properties properties, java.lang.String host, java.lang.String protocol, java.lang.String port, java.lang.String user, java.lang.String password, java.lang.String from, boolean authentication, boolean debug)
properties
- properties that are passed directly to the mail implementation.host
- The host of the mail server.protocol
- the protocol of the mail server.port
- the port of the mail server.user
- the username of the mail server.password
- the password (neccessary if authentication is rewquired only).from
- the from addressauthentication
- if true an authentication is necessary.debug
- if true>/em> debug information will be printed from the underlying system.javax.mail.Message.RecipientType createRecipientType(java.lang.String type)
type
- the type string.