com.octo.captcha.module.config
Class CaptchaModuleConfigHelper

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

public class CaptchaModuleConfigHelper
extends java.lang.Object

Class that provides static utility method to use the Module configuration.


Constructor Summary
CaptchaModuleConfigHelper()
           
 
Method Summary
static java.lang.String getId(HttpServletRequest httpServletRequest)
          method that get an id using the plugin configuration.
static java.lang.String getMessage(HttpServletRequest httpServletRequest)
          Method that return the fail or error message from the specified bundle or directly from the value specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptchaModuleConfigHelper

public CaptchaModuleConfigHelper()
Method Detail

getId

public static java.lang.String getId(HttpServletRequest httpServletRequest)
method that get an id using the plugin configuration.
It may be retrieved from the session via the getId() native method if the idType is set to 'session' or retrieved from the request using the 'idKey' parameter if the idType is set to 'generated';


getMessage

public static java.lang.String getMessage(HttpServletRequest httpServletRequest)
Method that return the fail or error message from the specified bundle or directly from the value specified



Copyright 2003-2009 JCaptcha. All Rights Reserved.