1
2
3
4
5
6
7 package com.octo.captcha.sound;
8
9 import com.octo.captcha.Captcha;
10 import com.octo.captcha.CaptchaFactory;
11
12 import java.util.Locale;
13
14 /***
15 * <p/>
16 * Description: </p> This class is for building a sound captcha. This class is abstract.
17 *
18 * @author <a href="mailto:mga@octo.com">Mathieu Gandin </a>
19 * @version 1.0
20 */
21 public abstract class SoundCaptchaFactory implements CaptchaFactory {
22
23 /***
24 * this method builds a capctha.
25 *
26 * @return a captcha.
27 */
28 public Captcha getCaptcha() {
29 return this.getSoundCaptcha();
30 }
31
32 /***
33 * this method builds a localized capctha.
34 *
35 * @return a captcha.
36 */
37 public Captcha getCaptcha(Locale locale) {
38 return this.getSoundCaptcha(locale);
39 }
40
41 /***
42 * this method builds a sound capctha.
43 *
44 * @return a sound captcha.
45 */
46 public abstract SoundCaptcha getSoundCaptcha();
47
48 /***
49 * this method builds a localized sound capctha.
50 *
51 * @return a captcha.
52 */
53 public abstract SoundCaptcha getSoundCaptcha(Locale locale);
54 }