Interface ICaptchaService
-
public interface ICaptchaServiceInterface for captcha validator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getCaptchaEngineNameList()Get the list of captcha providersStringgetDefaultCaptchaEngineName()Get the default captcha engine to useStringgetHtmlCode()Gets the captcha HTML codevoidsetDefaultCaptchaEngineName(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
String getHtmlCode()
Gets the captcha HTML code- Returns:
- The captcha HTML code
-
getCaptchaEngineNameList
List<String> getCaptchaEngineNameList()
Get the list of captcha providers- Returns:
- The list of captcha providers
-
getDefaultCaptchaEngineName
String getDefaultCaptchaEngineName()
Get the default captcha engine to use- Returns:
- The name of the default captcha engine
-
setDefaultCaptchaEngineName
void setDefaultCaptchaEngineName(String strDefaultCaptchaEngine)
Set the default captcha engine to use- Parameters:
strDefaultCaptchaEngine- the name of the default captcha engine to use
-
-