All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.octo.captcha.text.TextCaptchaFactory Maven / Gradle / Ivy

The newest version!
/*
 * JCaptcha, the open source java framework for captcha definition and integration
 * Copyright (c)  2007 jcaptcha.net. All Rights Reserved.
 * See the LICENSE.txt file distributed with this package.
 */

package com.octo.captcha.text;

import com.octo.captcha.Captcha;
import com.octo.captcha.CaptchaFactory;

import java.util.Locale;

/**
 * 

Implements a TextCaptcha Factory

. * * @author Marc-Antoine Garrigue * @version 1.0 */ public abstract class TextCaptchaFactory implements CaptchaFactory { /** * builds a captcha. * * @return a captcha */ public final Captcha getCaptcha() { return getTextCaptcha(); } /** * build Localized captcha (don't forget those captcha are for human beings!). * * @return a captcha corresponding to the locale */ public final Captcha getCaptcha(final Locale locale) { return getTextCaptcha(locale); } /** * TextCaptcha. * * @return a Text captcha */ public abstract TextCaptcha getTextCaptcha(); /** * a TextCaptcha. * * @return a localized TextCaptcha */ public abstract TextCaptcha getTextCaptcha(Locale locale); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy