|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.GenericService
atg.droplet.EmptyFormHandler
atg.droplet.GenericFormHandler
com.digitalsanctuary.atg.captcha.CaptchaFormHandler
Handles validation of user input against captcha input. Depends on simplecaptcha image generation. If simplecaptcha
value is not found in session user passes validation.
Handlers:
handleSubmit
Field Summary | |
static java.lang.String |
PROFILE_CAPTCHA_VALIDATED
The captcha validated profile property. |
static java.lang.String |
SESSION_CAPTCHA_PROPERTY
Session parameter name where captcha text is placed in session by SimpleCaptcha. |
Fields inherited from class atg.droplet.GenericFormHandler |
CLASS_VERSION, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
CaptchaFormHandler()
|
Method Summary | |
java.lang.String |
getCaptcha()
|
java.lang.String |
getErrorURL()
|
atg.userprofiling.Profile |
getProfile()
|
java.lang.String |
getSuccessURL()
|
boolean |
handleSubmit(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method handles the submission of a captcha answer. |
void |
postValidationAction()
When this class is sub-typed, this method should be overridden to perform any actions upon the user entering the correct captcha. |
void |
setCaptcha(java.lang.String pCaptcha)
|
void |
setErrorURL(java.lang.String pErrorURL)
|
void |
setProfile(atg.userprofiling.Profile pProfile)
|
void |
setSuccessURL(java.lang.String pSuccessURL)
|
Methods inherited from class atg.droplet.GenericFormHandler |
addFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, handleCancel, handleFormException, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards |
Methods inherited from class atg.droplet.EmptyFormHandler |
afterGet, beforeGet |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning, setServiceInfo, startService, stopService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROFILE_CAPTCHA_VALIDATED
public static final java.lang.String SESSION_CAPTCHA_PROPERTY
Constructor Detail |
public CaptchaFormHandler()
Method Detail |
public boolean handleSubmit(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
pRequest
- the dynamo request object.pResponse
- the dynamo response object.
java.io.IOException
- on error.
javax.servlet.ServletException
- on error.public void postValidationAction()
public java.lang.String getSuccessURL()
public void setSuccessURL(java.lang.String pSuccessURL)
pSuccessURL
- the url to redirect to in a success case.public java.lang.String getErrorURL()
public void setErrorURL(java.lang.String pErrorURL)
pErrorURL
- the url to redirect to in an error case.public java.lang.String getCaptcha()
public void setCaptcha(java.lang.String pCaptcha)
pCaptcha
- the captcha to setpublic atg.userprofiling.Profile getProfile()
public void setProfile(atg.userprofiling.Profile pProfile)
pProfile
- the profile to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |