|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blojsom.plugin.notification.AbstractNotification
org.blojsom.plugin.notification.AbstractVelocityEmailNotification
Field Summary |
Fields inherited from class org.blojsom.plugin.notification.AbstractNotification |
charEncoding, contentType, emailTemplate, mailServer |
Constructor Summary | |
AbstractVelocityEmailNotification(org.apache.commons.mail.Email email,
java.net.URL emailTemplate)
Construct a new abstract velocity e-mail notification |
|
AbstractVelocityEmailNotification(java.net.URL emailTemplate,
java.lang.String charEncoding,
java.lang.String mailServer,
java.lang.String contentType)
Construct a new abstract velocity e-mail notification |
|
AbstractVelocityEmailNotification(java.net.URL emailTemplate,
java.lang.String charEncoding,
java.lang.String mailServer,
java.lang.String contentType,
java.util.Properties velocityProps)
Construct a new abstract velocity e-mail notification |
|
AbstractVelocityEmailNotification(java.net.URL emailTemplate,
java.lang.String charEncoding,
java.lang.String mailServer,
java.lang.String contentType,
java.lang.String velocityPropsPath)
Construct a new abstract velocity e-mail notification |
Method Summary | |
java.lang.Object |
get(java.lang.String key)
Get a value from the context |
protected java.lang.String |
getMessage()
Get the e-mail message content evaluated |
void |
put(java.lang.String name,
java.lang.Object value)
Put a name and value in the context |
void |
putAll(java.util.Map values)
Put a map of name/value pairs in the context |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Set the servlet context |
Methods inherited from class org.blojsom.plugin.notification.AbstractNotification |
encodeRegexCharacters, getBlindCarbonCopyRecipients, getCarbonCopyRecipients, getEmailTemplate, getRecipients, getSender, getSubject, send |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractVelocityEmailNotification(org.apache.commons.mail.Email email, java.net.URL emailTemplate) throws javax.mail.MessagingException
email
- E-mail messageemailTemplate
- E-mail template
javax.mail.MessagingException
- If there is an error constructing the e-mail notificationpublic AbstractVelocityEmailNotification(java.net.URL emailTemplate, java.lang.String charEncoding, java.lang.String mailServer, java.lang.String contentType) throws java.lang.Exception
emailTemplate
- E-mail templatecharEncoding
- Character encodingmailServer
- Mail servercontentType
- Content type
java.lang.Exception
- If there is an error constructing the e-mail notificationpublic AbstractVelocityEmailNotification(java.net.URL emailTemplate, java.lang.String charEncoding, java.lang.String mailServer, java.lang.String contentType, java.util.Properties velocityProps) throws java.lang.Exception
emailTemplate
- E-mail templatecharEncoding
- Character encodingmailServer
- Mail servercontentType
- Content typevelocityProps
- Velocity properties
java.lang.Exception
- If there is an error constructing the e-mail notificationpublic AbstractVelocityEmailNotification(java.net.URL emailTemplate, java.lang.String charEncoding, java.lang.String mailServer, java.lang.String contentType, java.lang.String velocityPropsPath) throws java.lang.Exception
emailTemplate
- E-mail templatecharEncoding
- Character encodingmailServer
- Mail servercontentType
- Content typevelocityPropsPath
- Velocity properties path
java.lang.Exception
- If there is an error constructing the e-mail notificationMethod Detail |
protected java.lang.String getMessage() throws java.lang.Exception
getMessage
in class AbstractNotification
java.lang.Exception
- If there is an error evaluating the templatepublic void put(java.lang.String name, java.lang.Object value)
name
- Namevalue
- Valuepublic void putAll(java.util.Map values)
values
- Map of name/value pairspublic java.lang.Object get(java.lang.String key)
key
- Key
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
servletContext
- ServletContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |