public class EmailAFriendFormHandler extends GenericEmailSenderFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
MSG_ACTION_SUCCESS
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
Constructor and Description |
---|
EmailAFriendFormHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map |
collectParams()
Collect parameters for e-mail templates
|
java.lang.String |
getLocale()
Gets the value of the Locale: field.
|
java.lang.String |
getLocaleParamName() |
java.lang.String |
getProductId()
Gets the value of the ProductId: field.
|
java.lang.String |
getProductIdParamName()
Gets the name of the parameter used for the ProductId: field.
|
java.lang.String |
getSubjectParamName()
Gets the name of the parameter used for the Subject: field.
|
java.lang.String |
getSuccessURL() |
boolean |
handleSend(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Handles the form submit and sends the email.
|
protected void |
redirectOrForward(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse,
java.lang.String pURL)
Forward or redirect, as required.
|
void |
setLocale(java.lang.String pLocale)
Sets the value of the locale: field.
|
void |
setLocaleParamName(java.lang.String pLocaleParamName) |
void |
setProductId(java.lang.String pProductId)
Sets the value of the ProductId: field.
|
void |
setProductIdParamName(java.lang.String pProductIdParamName)
Sets the name of the parameter used for the ProductId: field.
|
void |
setSubjectParamName(java.lang.String pSubjectParamName)
Sets the name of the parameter used for the Subject: field.
|
getActionResult, getEmailTools, getErrorURL, getMessage, getMessageParamName, getProfile, getProfileTools, getRecipientEmail, getRecipientEmailParamName, getRecipientName, getRecipientNameParamName, getResourceBundle, getResourceBundleName, getSenderEmail, getSenderEmailParamName, getSenderName, getSenderNameParamName, getSiteId, getSiteIdParamName, getSubject, getTemplateUrl, getTemplateUrlName, processException, setActionResult, setEmailTools, setErrorURL, setMessage, setMessageParamName, setProfile, setRecipientEmail, setRecipientEmailParamName, setRecipientName, setRecipientNameParamName, setResourceBundleName, setSenderEmail, setSenderEmailParamName, setSenderName, setSenderNameParamName, setSiteId, setSiteIdParamName, setSubject, setSuccessURL, setTemplateUrl, setTemplateUrlName
addFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public java.lang.String getProductIdParamName()
public void setProductIdParamName(java.lang.String pProductIdParamName)
pProductIdParamName
- -
the name of the parameter used for the ProductId: field.public java.lang.String getSubjectParamName()
getSubjectParamName
in class GenericEmailSenderFormHandler
public void setSubjectParamName(java.lang.String pSubjectParamName)
setSubjectParamName
in class GenericEmailSenderFormHandler
pSubjectParamName
- -
the name of the parameter used for the Subject: field.public void setLocaleParamName(java.lang.String pLocaleParamName)
pLocaleParamName
- -
locale parameter name.public java.lang.String getLocaleParamName()
public java.lang.String getLocale()
public void setLocale(java.lang.String pLocale)
pLocale
- -
the value of the locale: field.public java.lang.String getProductId()
public void setProductId(java.lang.String pProductId)
pProductId
- -
the value of the ProductId: field.protected java.util.Map collectParams()
collectParams
in class GenericEmailSenderFormHandler
protected void redirectOrForward(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, java.lang.String pURL) throws java.io.IOException, javax.servlet.ServletException
redirectOrForward
in class atg.droplet.GenericFormHandler
pRequest
- the servlet's requestpResponse
- the servlet's responsepURL
- the url to redirect or forward to.java.io.IOException
- an error occurred reading data from the request
or writing data to the response.javax.servlet.ServletException
- an application specific error occurred
processing this requestpublic java.lang.String getSuccessURL()
getSuccessURL
in class GenericEmailSenderFormHandler
public boolean handleSend(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
handleSend
in class GenericEmailSenderFormHandler
pRequest
- http requestpResponse
- http responsejava.io.IOException
- an error occurred reading data from the request
or writing data to the response.javax.servlet.ServletException
- an application specific error occurred
processing this request