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

acube.framework.captcha.manager
Classe CaptchaManager
java.lang.Object
  acube.framework.captcha.manager.CaptchaManager

public class CaptchaManager
hérite de Object
Projet AppliTestLISE_J2EE.
Author:
bzgn4l

Sommaire des Attributs
private ArrayList
aListIDs
ListIDs the ListIDs refers ids from captcha tag
private HashMap
captchaMap
captchaMap - the captchaMap is the Acube captcha services map.
private static final String
ERR_TEC_CAPTCHA_01
ERR_TEC_CAPTCHA_01 - the ERR_TEC_CAPTCHA_01 is raised when this parameter is absent is http servlet request.
private static final String
ERR_TEC_CAPTCHA_02
ERR_TEC_CAPTCHA_02 - the ERR_TEC_CAPTCHA_02 is raised when ERR_TEC_CAPTCHA_01 was raised, Acube Captcha Service can't work without this parameter.
private static CaptchaManager
instance
singleton.
private static org.apache.log4j.Logger
log
log the log - CaptchaManager's logger.
private static final String
THIS_CLASS
THIS_CLASS - CaptchaManager's class name.
Sommaire des Constructeurs
CaptchaManager()
Initialize captchaMap and hCaptchaNameSwitchMap attributes.
Sommaire des Méthodes
void
addCaptcha(String name, String classPath)
this method create a new instance of specific Acube captcha service and put this one into CaptchaManager's attribute
boolean
checkIds()
Check method in purpose to validate the captcha configuration.
boolean
checkNames()
Check method in purpose to validate the captcha configuration.
boolean
checkTools(Collection myCollection)
Check method in purpose to validate the captcha configuration.
Object
delegateInstantiation(String classPath)
delegateInstantiation method create a new instance for the class name.
doCaptchaSelection(String captchaName)
CaptchaSelection method select the specific Acube CaptchaService by captcha name.
getCaptchaByName(String name)
This getter give you the Acube Captcha Service by the name.
static String
getCaptchaParam(HttpServletRequest request, String cle)
Recuperation d'un attribut en requete sous forme de Integer.
static ArrayList
Méthodes héritées de la classe java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Détail des Attributs
THIS_CLASS
private static final String THIS_CLASS
THIS_CLASS - CaptchaManager's class name.

ERR_TEC_CAPTCHA_01
private static final String ERR_TEC_CAPTCHA_01
ERR_TEC_CAPTCHA_01 - the ERR_TEC_CAPTCHA_01 is raised when this parameter is absent is http servlet request.

ERR_TEC_CAPTCHA_02
private static final String ERR_TEC_CAPTCHA_02
ERR_TEC_CAPTCHA_02 - the ERR_TEC_CAPTCHA_02 is raised when ERR_TEC_CAPTCHA_01 was raised, Acube Captcha Service can't work without this parameter.

log
private static org.apache.log4j.Logger log
log the log - CaptchaManager's logger.

instance
private static CaptchaManager instance
singleton.

captchaMap
private HashMap captchaMap
captchaMap - the captchaMap is the Acube captcha services map. It contains all Acube captcha services instances.

aListIDs
private ArrayList aListIDs
ListIDs the ListIDs refers ids from captcha tag
Détail des Constructeurs
CaptchaManager
public CaptchaManager()
Initialize captchaMap and hCaptchaNameSwitchMap attributes.
Détail des méthodes
getInstance
public static CaptchaManager getInstance()
Retours:
CaptchaManager's instance.

delegateInstantiation
public Object delegateInstantiation(String classPath)
                             throws CaptchaAcubeException
delegateInstantiation method create a new instance for the class name.
Paramètres:
classPath - class name
Retours:
the instance
Exceptions:
CaptchaAcubeException - may be InstantiationException, IllegalAccessException and ClassNotFoundException

doCaptchaSelection
public CaptchaAbstractService doCaptchaSelection(String captchaName)
                                          throws CaptchaAcubeException
CaptchaSelection method select the specific Acube CaptchaService by captcha name.
Paramètres:
captchaName - the name of the captcha to use.
Retours:
the Acube CaptchaService selected.
Exceptions:

addCaptcha
public void addCaptcha(String name,
                       String classPath)
                throws CaptchaAcubeException
this method create a new instance of specific Acube captcha service and put this one into CaptchaManager's attribute
Paramètres:
name - captcha name
classPath - path class
Exceptions:

getCaptchaByName
public CaptchaAbstractService getCaptchaByName(String name)
This getter give you the Acube Captcha Service by the name.
Paramètres:
name - the name of your catpcha
Retours:
specific Acube captcha service.

getCaptchaParam
public static String getCaptchaParam(HttpServletRequest request,
                                     String cle)
Recuperation d'un attribut en requete sous forme de Integer. Rejet FunctionalException si absence de l'objet en requete ou mauvais format.
Paramètres:
request - HttpServletRequest requete
cle - String cle dont on veut avoir la valeur en session
Retours:
Integer

checkIds
public boolean checkIds()
                 throws CaptchaAcubeException
Check method in purpose to validate the captcha configuration.
Retours:
return true if all captcha id are unique.
Exceptions:

checkNames
public boolean checkNames()
Check method in purpose to validate the captcha configuration.
Retours:
return true if all captcha name are unique.

checkTools
public boolean checkTools(Collection myCollection)
                   throws CaptchaAcubeException
Check method in purpose to validate the captcha configuration.
Paramètres:
myCollection - collection of values
Retours:
return true if all captcha id are unique.
Exceptions:
CaptchaAcubeException - raised if 'id' is not unique

getListIDs
public static ArrayList getListIDs()
Retours:
the captchamanager list of id

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