Interface ICaptchaService
-
public interface ICaptchaServiceInterface for captcha validator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getCaptchaEngineNameList()Get the list of captcha providersjava.lang.StringgetDefaultCaptchaEngineName()Get the default captcha engine to usejava.lang.StringgetHtmlCode()Gets the captcha HTML codevoidsetDefaultCaptchaEngineName(java.lang.String strDefaultCaptchaEngine)Set the default captcha engine to usebooleanvalidate(javax.servlet.http.HttpServletRequest request)Validate the captcha field
-
-
-
Method Detail
-
validate
boolean validate(javax.servlet.http.HttpServletRequest request)
Validate the captcha field- Parameters:
request- The HTTP request- Returns:
- True if OK, otherwise false
-
getHtmlCode
java.lang.String getHtmlCode()
Gets the captcha HTML code- Returns:
- The captcha HTML code
-
getCaptchaEngineNameList
java.util.List<java.lang.String> getCaptchaEngineNameList()
Get the list of captcha providers- Returns:
- The list of captcha providers
-
getDefaultCaptchaEngineName
java.lang.String getDefaultCaptchaEngineName()
Get the default captcha engine to use- Returns:
- The name of the default captcha engine
-
setDefaultCaptchaEngineName
void setDefaultCaptchaEngineName(java.lang.String strDefaultCaptchaEngine)
Set the default captcha engine to use- Parameters:
strDefaultCaptchaEngine- the name of the default captcha engine to use
-
-