org.infoglue.deliver.applications.inputhandlers
Class MailSender
java.lang.Object
org.infoglue.deliver.applications.inputhandlers.MailSender
- All Implemented Interfaces:
- InfoGlueInputHandler
public class MailSender
- extends java.lang.Object
- implements InfoGlueInputHandler
This is the first implementation of the InfoGlueInputHandler which emails a recipent the feedback.
This class needs a couple of parameters from the form-content. They are:
MailSender.fromAddress = The address from where the mail should originate
MailSender.toAddress = The recipient of the feedback on the site.
MailSender.subject = The subject line we want in the emails.
MailSender.template = The template is as all other templates a way to present info and in this case to create an email body. Check out the examples.
|
Method Summary |
TemplateController |
getTemplateController(DatabaseWrapper databaseWrapper,
java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
javax.servlet.http.HttpServletRequest request,
InfoGluePrincipal infogluePrincipal)
This method should be much more sophisticated later and include a check to see if there is a
digital asset uploaded which is more specialized and can be used to act as serverside logic to the template. |
void |
processInput(DatabaseWrapper databaseWrapper,
java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
java.lang.Integer formContentId,
java.util.HashMap parameters,
javax.servlet.http.HttpServletRequest request,
InfoGluePrincipal infogluePrincipal)
This is the method that is invoked by the calling action. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailSender
public MailSender()
processInput
public void processInput(DatabaseWrapper databaseWrapper,
java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
java.lang.Integer formContentId,
java.util.HashMap parameters,
javax.servlet.http.HttpServletRequest request,
InfoGluePrincipal infogluePrincipal)
throws java.lang.Exception
- This is the method that is invoked by the calling action.
- Specified by:
processInput in interface InfoGlueInputHandler
- Throws:
java.lang.Exception
getTemplateController
public TemplateController getTemplateController(DatabaseWrapper databaseWrapper,
java.lang.Integer siteNodeId,
java.lang.Integer languageId,
java.lang.Integer contentId,
javax.servlet.http.HttpServletRequest request,
InfoGluePrincipal infogluePrincipal)
throws java.lang.Exception
- This method should be much more sophisticated later and include a check to see if there is a
digital asset uploaded which is more specialized and can be used to act as serverside logic to the template.
The method also consideres wheter or not to invoke the preview-version with administrative functioality or the
normal site-delivery version.
- Throws:
java.lang.Exception
Copyright © 2005 InfoGlue.org All Rights Reserved.