org.apache.myfaces.custom.captcha
Class AbstractCAPTCHAComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.captcha.AbstractCAPTCHAComponent
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
CAPTCHAComponent

public abstract class AbstractCAPTCHAComponent
extends javax.faces.component.UIComponentBase

Since:
1.1.7
Author:
Hazem Saleh

Field Summary
static String ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME
           
static String ATTRIBUTE_IMAGE_HEIGHT
           
static String ATTRIBUTE_IMAGE_WIDTH
           
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
AbstractCAPTCHAComponent()
           
 
Method Summary
abstract  String getCaptchaSessionKeyName()
          Determines the CAPTCHA session key name.
 String getCaptchaSessionValue()
          Return the value stored in session map related to captchaSessionKeyName
abstract  String getImageHeight()
          Integer to indicate the CAPTCHA height.
abstract  String getImageWidth()
          Integer to indicate the CAPTCHA width.
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getFamily, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static String COMPONENT_TYPE

COMPONENT_FAMILY

public static String COMPONENT_FAMILY

DEFAULT_RENDERER_TYPE

public static String DEFAULT_RENDERER_TYPE

ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME

public static final String ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME
See Also:
Constant Field Values

ATTRIBUTE_IMAGE_WIDTH

public static final String ATTRIBUTE_IMAGE_WIDTH
See Also:
Constant Field Values

ATTRIBUTE_IMAGE_HEIGHT

public static final String ATTRIBUTE_IMAGE_HEIGHT
See Also:
Constant Field Values
Constructor Detail

AbstractCAPTCHAComponent

public AbstractCAPTCHAComponent()
Method Detail

getCaptchaSessionKeyName

public abstract String getCaptchaSessionKeyName()
Determines the CAPTCHA session key name. If org.apache.myfaces.tomahawk.PREFIX_CAPTCHA_SESSION_KEY is set to true (default), a prefix defined by the component is added to this key name.

Returns:

getImageWidth

public abstract String getImageWidth()
Integer to indicate the CAPTCHA width. default is 290.


getImageHeight

public abstract String getImageHeight()
Integer to indicate the CAPTCHA height. default is 81.


getCaptchaSessionValue

public String getCaptchaSessionValue()
Return the value stored in session map related to captchaSessionKeyName

Returns:


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.