Framework Serveur J2EE ACube V3.1.0
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

acube.framework.captcha.captchaservices
Classe CaptchaImageService
java.lang.Object
  acube.framework.captcha.CaptchaAbstractService
      acube.framework.captcha.captchaservices.CaptchaImageService

public class CaptchaImageService
hérite de CaptchaAbstractService
Service for picture captcha types.
Author:
EDS - bzgn4l

Sommaire des Attributs
private static org.apache.log4j.Logger
log
log the log for CaptchaImageService class.
Sommaire des Constructeurs
CaptchaImageService()
CaptchaImageService permet l'utilisation des captchas de type image.
Sommaire des Méthodes
boolean
computeValidation(String idCaptcha, String response)
It the resolve method of your captcha.
byte[]
getOutStream(String idCaptcha, Locale LLocale)
This method create a captcha 's new file output stream.
void
parseElement(org.jdom.Element eCaptcha)
The CaptchaManagerLoader parse the root config.
For each reading of </captcha> tags, the CaptchaManagerLoader can select your AcubeCaptchaService class for your specific jcaptcha service.
So, The CaptchaManagerLoader can call this method (on starting) in order to parse every </bean> you have defined in the captcha configuration file.
This method that you have to implement must finish calls of setOctoCaptchaServiceInstance(String) and setOctoCaptchaServiceId(String)
Méthodes héritées de la classe acube.framework.captcha.CaptchaAbstractService
computeValidation, getContentType, getId, getOctoCaptchaServiceId, getOctoCaptchaServiceInstance, getOutStream, parseElement, setContentType, setId, setOctoCaptchaServiceId, setOctoCaptchaServiceInstance
Méthodes héritées de la classe java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Détail des Attributs
log
private static org.apache.log4j.Logger log
log the log for CaptchaImageService class.
Détail des Constructeurs
CaptchaImageService
public CaptchaImageService()
CaptchaImageService permet l'utilisation des captchas de type image. CaptchaAbstractService.CaptchaAbstractService()
Détail des méthodes
getOutStream
public byte[] getOutStream(String idCaptcha,
                           Locale LLocale)
                    throws CaptchaAcubeException
This method create a captcha 's new file output stream.
Dépacées:
Paramètres:
idCaptcha - id of captcha 's new file output stream
Retours:
the file in array of bytes.
Exceptions:
CaptchaAcubeException - CaptchaAcubeException

parseElement
public void parseElement(org.jdom.Element eCaptcha)
                  throws CaptchaAcubeException
The CaptchaManagerLoader parse the root config.
For each reading of </captcha> tags, the CaptchaManagerLoader can select your AcubeCaptchaService class for your specific jcaptcha service.
So, The CaptchaManagerLoader can call this method (on starting) in order to parse every </bean> you have defined in the captcha configuration file.
This method that you have to implement must finish calls of setOctoCaptchaServiceInstance(String) and setOctoCaptchaServiceId(String)
Dépacées:
Paramètres:
eCaptcha - refers captcha Element (jdom) of </captcha>
Exceptions:
CaptchaAcubeException - CaptchaAcubeException

computeValidation
public boolean computeValidation(String idCaptcha,
                                 String response)
                          throws CaptchaAcubeException
It the resolve method of your captcha.
Dépacées:
Paramètres:
idCaptcha - id of captcha 's new file output stream
Retours:
boolean true where it solved else false
Exceptions:
CaptchaAcubeException - CaptchaAcubeException

Framework Serveur J2EE ACube V3.1.0
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

Version 3.1.0 du 06/11/2009 / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.
Documentation generated by DocFlex