fr.paris.lutece.portal.service.captcha
Interface ICaptchaService


public interface ICaptchaService

Interface for captcha validator


Method Summary
 List<String> getCaptchaEngineNameList()
          Get the list of captcha providers
 String getDefaultCaptchaEngineName()
          Get the default captcha engine to use
 String getHtmlCode()
          Gets the captcha HTML code
 void setDefaultCaptchaEngineName(String strDefaultCaptchaEngine)
          Set the default captcha engine to use
 boolean validate(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


Copyright © 2014 Mairie de Paris. All Rights Reserved.