|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for Phoenix blocks to the James MailServer
Field Summary | |
static String |
ALL
Reserved user name meaning all users for multi-user mailboxes |
static String |
MDA
Reserved user name for the mail delivery agent for multi-user mailboxes |
static String |
ROLE
The component role used by components implementing this service |
Method Summary | |
boolean |
addUser(String userName,
String password)
Adds a new user to the mail system with userName. |
String |
getId()
Generate a new identifier/name for a mail being processed by this server. |
MailRepository |
getUserInbox(String userName)
Retrieve the primary mailbox for userName. |
boolean |
isLocalServer(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,
Collection recipients,
InputStream msg)
Pass a MimeMessage to this MailServer for processing |
void |
sendMail(MailAddress sender,
Collection recipients,
MimeMessage msg)
Pass a MimeMessage to this MailServer for processing |
void |
sendMail(MimeMessage message)
Pass a MimeMessage to this MailServer for processing |
Field Detail |
public static final String ROLE
public static final String MDA
public static final String ALL
Method Detail |
public void sendMail(MailAddress sender, Collection recipients, MimeMessage msg) throws 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
MessagingException
- - if the message fails to parsepublic void sendMail(MailAddress sender, Collection recipients, InputStream msg) throws 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
MessagingException
- - if the message fails to parsepublic void sendMail(Mail mail) throws MessagingException
mail
- the Mail to be processed
MessagingException
public void sendMail(MimeMessage message) throws MessagingException
message
- the message
MessagingException
public MailRepository getUserInbox(String userName)
public String getId()
public boolean addUser(String userName, String password)
public boolean isLocalServer(String serverName)
serverName
- - name of server.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |