com.octo.captcha
Class CaptchaQuestionHelper

java.lang.Object
  extended by com.octo.captcha.CaptchaQuestionHelper

public final class CaptchaQuestionHelper
extends java.lang.Object

Helps to retrieve internationalized questions for captchas. Used by captcha factories.

Version:
1.0
Author:
Marc-Antoine Garrigue

Field Summary
static java.lang.String BUNDLE_NAME
          The bundle name used by this helper
 
Method Summary
static java.lang.String getQuestion(java.util.Locale locale, java.lang.String key)
          Return a localized question for the catpcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_NAME

public static final java.lang.String BUNDLE_NAME
The bundle name used by this helper

Method Detail

getQuestion

public static java.lang.String getQuestion(java.util.Locale locale,
                                           java.lang.String key)
Return a localized question for the catpcha

Parameters:
locale - the locale
key - the key to retrieve a localized question : should be the captcha name
Returns:
a localized question


Copyright © 2003-2011 JCaptcha corp.. All Rights Reserved.