|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.notification.AbstractNotification
Field Summary | |
protected java.lang.String |
charEncoding
|
protected java.lang.String |
contentType
|
protected java.net.URL |
emailTemplate
|
protected java.lang.String |
mailServer
|
Constructor Summary | |
AbstractNotification(java.net.URL emailTemplate,
java.lang.String charEncoding,
java.lang.String mailServer,
java.lang.String contentType)
Create a new abstract notification |
Method Summary | |
protected java.lang.String |
encodeRegexCharacters(java.lang.String string)
Encode regex characters in a string |
protected abstract java.util.List |
getBlindCarbonCopyRecipients()
Retrieve the list of BCC recipients |
protected abstract java.util.List |
getCarbonCopyRecipients()
Retrieve the list of CC recipients |
protected java.net.URL |
getEmailTemplate()
Retrieve the e-mail template |
protected abstract java.lang.String |
getMessage()
Retrieve the e-mail message content |
protected abstract java.util.List |
getRecipients()
Retrieve the list of recipients |
protected abstract java.lang.String |
getSender()
Retrieve the sender |
protected abstract java.lang.String |
getSubject()
Retrieve the subject |
void |
send()
Send the e-mail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String charEncoding
protected java.net.URL emailTemplate
protected java.lang.String mailServer
protected java.lang.String contentType
Constructor Detail |
public AbstractNotification(java.net.URL emailTemplate, java.lang.String charEncoding, java.lang.String mailServer, java.lang.String contentType)
emailTemplate
- E-mail templatecharEncoding
- Character encodingmailServer
- Mail server namecontentType
- Content typeMethod Detail |
public void send() throws org.apache.commons.mail.EmailException
send
in interface Notification
org.apache.commons.mail.EmailException
- If there is an error sending the e-mailprotected abstract java.lang.String getSender()
protected abstract java.util.List getRecipients()
protected abstract java.lang.String getMessage() throws java.lang.Exception
java.lang.Exception
- If there is an error getting the contentprotected abstract java.lang.String getSubject()
protected abstract java.util.List getCarbonCopyRecipients()
protected abstract java.util.List getBlindCarbonCopyRecipients()
protected java.lang.String encodeRegexCharacters(java.lang.String string)
string
- Input
protected java.net.URL getEmailTemplate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |