|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.shaker.dwu.MailEngine
This pure static class provides methods to submit BugProfiles and to check addresses and ports.
Inner Class Summary | |
(package private) class |
MailEngine.DWUAuthenticator
An Authenticator. |
Field Summary | |
private static Settings |
SETTINGS
a local reference to DWU`s properties |
Constructor Summary | |
private |
MailEngine()
Invisible constructor. |
Method Summary | |
private static javax.mail.Message[] |
getMessageArray(javax.mail.Session session,
BugProfile[] profs)
Returns a Message array that encapsulates the BugProfile queue. |
private static void |
performPOPAuth(javax.mail.Session session)
This method performs a POP-Authentification based on the settings in dwuProps (POP server, POP port, username, password). |
(package private) static java.lang.String |
submit(java.awt.Component parent,
BugProfile[] profiles)
Submits an array of BugProfiles and returns a success description. |
private static void |
submitMaintenanceMessage(javax.mail.Session session)
This method sends a maintenance mail, that contains the error.log text. |
private static void |
submitMsgs(javax.mail.Message[] messages,
BugProfile[] profiles)
Sends an array of messages. |
(package private) static boolean |
validateMail(java.lang.String address)
Returns true, if the given address string is a valid mail address. TODO Weak implementation yet, has to be improved! |
(package private) static boolean |
validatePort(java.lang.String portString)
Returns true, if the given address string is a port |
(package private) static boolean |
validateServer(java.lang.String address)
Returns true, if the given address string is a valid server address. TODO Weak implementation yet, has to be improved! |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final Settings SETTINGS
Constructor Detail |
private MailEngine()
Method Detail |
static java.lang.String submit(java.awt.Component parent, BugProfile[] profiles)
parent
- a parental Componentprofiles
- the array of BugProfilesprivate static final void performPOPAuth(javax.mail.Session session) throws javax.mail.MessagingException
session
- the current mailing sessionjavax.mail.MessagingException
- on POP-Auth connection errorsprivate static final javax.mail.Message[] getMessageArray(javax.mail.Session session, BugProfile[] profs) throws javax.mail.MessagingException
session
- the current mailing sessionprofs
- the BugProfiles queue stored in an arrayjavax.mail.MessagingException
- thrown on message creation errorsprivate static final void submitMaintenanceMessage(javax.mail.Session session) throws javax.mail.MessagingException
session
- the current mailing sessionprivate static final void submitMsgs(javax.mail.Message[] messages, BugProfile[] profiles) throws javax.mail.MessagingException
messages
- the messagesprofiles
- the underlying profilesjavax.mail.MessagingException
- in case of an submission errorstatic boolean validateMail(java.lang.String address)
address
- the address stringstatic boolean validateServer(java.lang.String address)
address
- the addressstatic boolean validatePort(java.lang.String portString)
portString
- the port
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |