com.octo.captcha.module.config
Class CaptchaModuleConfig

java.lang.Object
  extended by com.octo.captcha.module.config.CaptchaModuleConfig

public class CaptchaModuleConfig
extends java.lang.Object

Configuration base class for modules.


Field Summary
static java.lang.String ID_GENERATED
          Set the id to be generated
static java.lang.String ID_SESSION
          Set the id to be retrieved from session id
static java.lang.String JMX_REGISTERING_NAME
          Set the default JMX registration name
static java.lang.String MESSAGE_TYPE_BUNDLE
          Set the message type to be a bundle
static java.lang.String MESSAGE_TYPE_TEXT
          Set the message type to be a text
 
Method Summary
 java.lang.String getIdKey()
           
 java.lang.String getIdType()
           
static CaptchaModuleConfig getInstance()
           
 java.lang.String getMessageKey()
           
 java.lang.String getMessageType()
           
 java.lang.String getMessageValue()
           
 java.lang.Boolean getRegisterToMbean()
           
 java.lang.String getResponseKey()
           
 java.lang.String getServiceClass()
           
 void setIdKey(java.lang.String idKey)
           
 void setIdType(java.lang.String idType)
           
 void setMessageKey(java.lang.String messageKey)
           
 void setMessageType(java.lang.String messageType)
           
 void setMessageValue(java.lang.String messageValue)
           
 void setRegisterToMbean(java.lang.Boolean registerToMbean)
           
 void setResponseKey(java.lang.String responseKey)
           
 void setServiceClass(java.lang.String serviceClass)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_TYPE_BUNDLE

public static final java.lang.String MESSAGE_TYPE_BUNDLE
Set the message type to be a bundle

See Also:
Constant Field Values

ID_GENERATED

public static final java.lang.String ID_GENERATED
Set the id to be generated

See Also:
Constant Field Values

MESSAGE_TYPE_TEXT

public static final java.lang.String MESSAGE_TYPE_TEXT
Set the message type to be a text

See Also:
Constant Field Values

ID_SESSION

public static final java.lang.String ID_SESSION
Set the id to be retrieved from session id

See Also:
Constant Field Values

JMX_REGISTERING_NAME

public static final java.lang.String JMX_REGISTERING_NAME
Set the default JMX registration name

See Also:
Constant Field Values
Method Detail

getInstance

public static CaptchaModuleConfig getInstance()

getIdKey

public java.lang.String getIdKey()
Returns:
The key parameter name, default jcatpcha_id

setIdKey

public void setIdKey(java.lang.String idKey)

getMessageType

public java.lang.String getMessageType()
Returns:
The message type parameter value, default text

setMessageType

public void setMessageType(java.lang.String messageType)

getMessageValue

public java.lang.String getMessageValue()
Returns:
The message parameter value, default "you failed the captcha test"

setMessageValue

public void setMessageValue(java.lang.String messageValue)

getMessageKey

public java.lang.String getMessageKey()
Returns:
The message parameter key, default "jcaptcha_fail"

setMessageKey

public void setMessageKey(java.lang.String messageKey)

getIdType

public java.lang.String getIdType()
Returns:
The id generation type, default "session"

setIdType

public void setIdType(java.lang.String idType)

getServiceClass

public java.lang.String getServiceClass()
Returns:
The jcaptcha service class name, default "jcaptcha_fail"

setServiceClass

public void setServiceClass(java.lang.String serviceClass)

getResponseKey

public java.lang.String getResponseKey()

setResponseKey

public void setResponseKey(java.lang.String responseKey)

getRegisterToMbean

public java.lang.Boolean getRegisterToMbean()

setRegisterToMbean

public void setRegisterToMbean(java.lang.Boolean registerToMbean)

validate

public void validate()


Copyright 2003-2009 JCaptcha. All Rights Reserved.