|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailServer
The interface for Phoenix blocks to the James MailServer
Field Summary | |
---|---|
static java.lang.String |
ALL
Reserved user name meaning all users for multi-user mailboxes |
static java.lang.String |
MDA
Reserved user name for the mail delivery agent for multi-user mailboxes |
static java.lang.String |
ROLE
The component role used by components implementing this service |
Method Summary | |
---|---|
boolean |
addUser(java.lang.String userName,
java.lang.String password)
Deprecated. addUser should not be considered a property of a MailServer We could have readonly userbases providing full MailServer implementations. Look at the UsersRepository.addUser(username, password) method. |
java.lang.String |
getId()
Generate a new identifier/name for a mail being processed by this server. |
MailRepository |
getUserInbox(java.lang.String userName)
Retrieve the primary mailbox for userName. |
boolean |
isLocalServer(java.lang.String serverName)
Checks if a server is serviced by mail context |
void |
sendMail(Mail mail)
Pass a Mail to this MailServer for processing |
void |
sendMail(MailAddress sender,
java.util.Collection recipients,
java.io.InputStream msg)
Deprecated. You can use MailetContext service for this purpose |
void |
sendMail(MailAddress sender,
java.util.Collection recipients,
javax.mail.internet.MimeMessage msg)
Deprecated. You can use MailetContext service for this purpose |
void |
sendMail(javax.mail.internet.MimeMessage message)
Deprecated. You can use MailetContext service for this purpose |
Field Detail |
---|
static final java.lang.String ROLE
static final java.lang.String MDA
static final java.lang.String ALL
Method Detail |
---|
void sendMail(MailAddress sender, java.util.Collection recipients, javax.mail.internet.MimeMessage msg) throws javax.mail.MessagingException
sender
- - the sender of the messagerecipients
- - a Collection of String objects of recipientsmsg
- - the MimeMessage of the headers and body content of
the outgoing message
javax.mail.MessagingException
- - if the message fails to parsevoid sendMail(MailAddress sender, java.util.Collection recipients, java.io.InputStream msg) throws javax.mail.MessagingException
sender
- - the sender of the messagerecipients
- - a Collection of String objects of recipientsmsg
- - an InputStream containing the headers and body content of
the outgoing message
javax.mail.MessagingException
- - if the message fails to parsevoid sendMail(Mail mail) throws javax.mail.MessagingException
mail
- the Mail to be processed
javax.mail.MessagingException
void sendMail(javax.mail.internet.MimeMessage message) throws javax.mail.MessagingException
message
- the message
javax.mail.MessagingException
MailRepository getUserInbox(java.lang.String userName)
sender
- - the name of the user
java.lang.String getId()
boolean addUser(java.lang.String userName, java.lang.String password)
sender
- - the name of the user
boolean isLocalServer(java.lang.String serverName)
serverName
- - name of server.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |